Author Topic: Does the layer exist.  (Read 2428 times)

0 Members and 1 Guest are viewing this topic.

Ron Heigh

  • Guest
Does the layer exist.
« 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?

Dommy2Hotty

  • Swamp Rat
  • Posts: 1127
Does the layer exist.
« Reply #1 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" "" "")
    )

Ron Heigh

  • Guest
Does the layer exist.
« Reply #2 on: September 08, 2004, 05:41:52 PM »
Thanks