TheSwamp
Code Red => AutoLISP (Vanilla / Visual) => Topic started by: mkweaver on January 27, 2009, 08:58:17 AM
-
Isn't there a lisp function that will check a layer/block name for validity? I've searched help, here on the swamp, and the autodesk newsgroups, but haven't found what I'm looking for. Have I missed something?
Pointers appreciated.
Mike
-
Maybe something like this
(if (tblsearch "layer" "layername")
(command "-layer" "s" "layername")
(command "-layer" "m" "layername" "c" "red" "layername" "")
);;end of if
-
I'm not checking to see if the layer exists, I want to know if the layer name is valid - will I get an error if I try to create a layer with this name?
Thanks
-
(snvalid sym_name [flag])
-
(snvalid sym_name [flag])
Thats what I was looking for!
Thank you much!
-
You're most welcome Mike.
(defun IsBliss ( question gratitude )
(and
(IsEasy question)
(IsGreat gratitude)
)
)
-
(defun IsBliss ( question gratitude )
(and
(IsEasy question)
(IsGreat gratitude)
)
)
While I envy your mastery, coding seems to have become more than a second language, heh MP?
Tony
-
T