brenth
03.04.2008, 19:41
I am trying to figure out how to add an if condition to the following lisp routine:
; LAYER SETUP ;(defun C:CHECKLA (HDNAME HDCOLOR HDLTTYPE) (command "cmdecho" "0") ; (if (= (tblsearch "layer" hdname) nil) (command "layer" "m" HDNAME "c" HDCOLOR "" "lt" HDLTTYPE "" "" ) (command "layer" "s" HDNAME "") ; ))
This routine creates a new layer in the drawing when the user selects the layer name from a pulldown menu. variables are set for HDNAME, HDCOLOR AND HDLTTYPE. I want to add a conditon where if HDNAME is equivalant to C-BORDER or BORDER, then the new layer is turned to a non-plot layer.
Any help is appreciated
Also If anyone can suggest a website, or book that is a dictionary of lisp commands I would love to get ahold of that info
Thanksbrenth2008-04-04 01:48:51
; LAYER SETUP ;(defun C:CHECKLA (HDNAME HDCOLOR HDLTTYPE) (command "cmdecho" "0") ; (if (= (tblsearch "layer" hdname) nil) (command "layer" "m" HDNAME "c" HDCOLOR "" "lt" HDLTTYPE "" "" ) (command "layer" "s" HDNAME "") ; ))
This routine creates a new layer in the drawing when the user selects the layer name from a pulldown menu. variables are set for HDNAME, HDCOLOR AND HDLTTYPE. I want to add a conditon where if HDNAME is equivalant to C-BORDER or BORDER, then the new layer is turned to a non-plot layer.
Any help is appreciated
Also If anyone can suggest a website, or book that is a dictionary of lisp commands I would love to get ahold of that info
Thanksbrenth2008-04-04 01:48:51