Jan 13, 2004 #1 T tsigwing Usenet Archive Joined Jun 26, 2003 Messages 76 Reaction score 0 How do I get all of the assoc 341 values from a viewport?
Jan 13, 2004 #2 J Jason Piercey Usenet Archive Joined Jun 30, 2003 Messages 868 Reaction score 0 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>)
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>)
Jan 13, 2004 #3 J John Uhden Usenet Archive Joined Jul 3, 2003 Messages 330 Reaction score 0 Return to the other thread. The 341 codes won't help you set frozen layers via AutoLisp.
Jan 14, 2004 #4 T tsigwing Usenet Archive Joined Jun 26, 2003 Messages 76 Reaction score 0 True, but they will tell me which layers are currently frozen in the viewport.