Author Topic: List of Layerstates  (Read 1336 times)

0 Members and 1 Guest are viewing this topic.


  • Mosquito
  • Posts: 16
List of Layerstates
« on: November 24, 2023, 07:13:15 AM »
Hi all,
i've found a lisp, that gives me a list of layerstates to fill a dcl-dialogbox with. I would like to exclude the layerstates of xrefs from th list. How can i determine a certain layerstate is from the drawing or an xref ?

(defun get_lslist ( / nme lslist)
   (vlax-for x
               (vlax-get-property (vlax-get-acad-object) 'activedocument)
      (setq nme (vlax-get x 'name))
      (setq lsList (cons nme lsList))
   (reverse lsList)