TheSwamp

Code Red => AutoLISP (Vanilla / Visual) => Topic started by: Ron Heigh on September 08, 2004, 05:34:46 PM

Title: Does the layer exist.
Post by: Ron Heigh on September 08, 2004, 05:34:46 PM
I used to have a code that I used to confirm the existance of a layer before I set it as current in LISP.  I seem to have lost it.  Does anybody have something to do this?
Title: Does the layer exist.
Post by: Dommy2Hotty on September 08, 2004, 05:38:45 PM
Code: [Select]

(if (not (tblsearch "layer" "PL-ELEC-FIXTURE"))
    (command ".layer" "m" "PL-ELEC-FIXTURE" "C" "3" "" "")
    )
Title: Does the layer exist.
Post by: Ron Heigh on September 08, 2004, 05:41:52 PM
Thanks