Hi I'm trying to have a list of layers in a drawing in my popup_list but can not find the solution
attached a piece of code
: Popup_list {width = 40; key = "listlayer"; }
(Action_tile "listlayer" "(setq * screenpointE2 * (done_dialog 9))")
(If (= ddiag 9) (AX: list))
(Defun AX: list (/ a b)
(If (setq a (tblnext "layer" t))
(While at
(Setq b (cons (cdr (assoc 2)) b)
to (tblnext "layer"))))
(Reverse b))