nnutting Posted November 3, 2011 Posted November 3, 2011 I'm new to the the forum...and have been searching for about an hour to find a lisp routine that will turn on and thaw all layers in a drawing. My last company had this...all you had to do was press 'A' and all the layers would come up. Thanks in advance. Quote
ReMark Posted November 3, 2011 Posted November 3, 2011 There are a few layer utility lisp routines available in the CAD Tips section over at Cadalyst magazine. Here's a link to get you started. http://cadtips.cadalyst.com/content/thaw-all-layers-drawing Quote
Lee Mac Posted November 3, 2011 Posted November 3, 2011 As a LISP: (defun c:a nil (command "_.-layer" "_Thaw" "*" "_ON" "*" "") (princ)) As a Macro (for LT users): ^C^C_.-layer;_Thaw;*;_ON;*;; Another, LISP: (defun c:a ( / a b ) (while (setq a (tblnext "LAYER" (null a))) (setq b (entget (tblobjname "LAYER" (cdr (assoc 2 a))))) (entmod (subst (cons 70 (boole 4 1 (cdr (assoc 70 b)))) (assoc 70 b) (subst (cons 62 (abs (cdr (assoc 62 b)))) (assoc 62 b) b ) ) ) ) (princ) ) Another, Visual LISP: (defun c:a ( / a ) (vlax-for a (vla-get-layers (vla-get-activedocument (vlax-get-acad-object))) (vla-put-layeron a :vlax-true) (if (not (eq (getvar 'CLAYER) (vla-get-name a))) (vla-put-freeze a :vlax-false) ) ) (princ) ) (vl-load-com) (princ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.