Multiple values in the assoc 341

One of many versions floating around here...

(defun massoc (key alist / x nlist)
(foreach x alist
(if (eq key (car x))
(setq nlist (cons (cdr x) nlist))
)
)
(reverse nlist)
)

use it like so: (massoc 341 <your viewport dxf list>)
 
Return to the other thread. The 341 codes won't help you set frozen layers via AutoLisp.
 
True, but they will tell me which layers are currently frozen in the viewport.
 

Latest threads

Back
Top