PDA

View Full Version : Freeze all Layers that begin with X-ANNO-REV


ReachAndre
2006-12-07, 09:21 PM
Hey everyone,
I was curious on how to write a lisp to have ACAD automatically freeze all layers the begin with "X-ANNO-REV"
Is there a way to do this?
thanks all
Andre
Acad 2007

T.Willey
2006-12-07, 09:39 PM
Yup. Step through the layer table (lisp) or the layer collection (ActiveX). Use 'wcmatch' to check if they match your criteria, and if so freeze them.

jgardner.79905
2006-12-07, 10:15 PM
see if this helps

(defun c:FreezeXlayers ()
(command "-layer" "F" "X-ANNO-REV*" "")
)