cab i was trying to modify this so i could then specify which command to run, line pline or rectangle. i'm getting malformed list so am i even close to formatting this right or no? here's what i got:
(defun c:lll (/ p) ;USED FOR DRAWING LINE ON SPECIFIED LAYER
(initget 1 "Glass Stainlesssteel Aluminum") ;Gets G or S or A
(setq p (getkword
"\nEnter an option (G)lass (S)tainless steel (A)luminum: "
)
)
(cond
((= p "Glass")
(progn
(command "_.-Layer" "_Make" "0-GLASS" "_L" "CONTINUOUS" "" "_Color" "Cyan" "" "")
)
)
((= p "Stainlesssteel")
(progn
(command "_.-Layer" "_Make" "0-STAINLESS STEEL" "_L" "Continuous" "" "_Color" "Yellow" "" "")
)
)
((= p "Aluminum")
(progn
(command "_.-Layer" "_Make" "0-ALUMINUM" "_L" "Continuous" "" "_Color" "Green" "" "")
)
)
)
(initget 1 "Line Pline Rectangle") ;Gets L or P or R
(setq p (getkword
"\nEnter an option (L)ine (P)line (R)ectangle: "
)
)
(cond
((= p "Line")
(progn
(command "Line")
(while (> (getvar "CMDACTIVE") 0)
(command pause)
)
(cond
((= p "Pline")
(progn
(command "Pline")
(while (> (getvar "CMDACTIVE") 0)
(command pause)
)
((= p "Rectangle")
(progn
(command "Rectangle")
(while (> (getvar "CMDACTIVE") 0)
(command pause)
)
(princ)
)