deleting layer filters

Nov 09, 2006 2 Replies

i am using autocad 2004 and when i open the layer properties manager, i cannot see any of the drawing layers because of a layer filter that was set by a previous user. is there any way to delete layer filters?



"donnie" wrote in news:1163075793.613799.69070 @b28g2000cwb.googlegroups.com:

This very simple filter works for me:

;;; Removes named layer filters ;;; Command line: (Purgefilters) (defun Purgefilters () (vl-Catch-All-Apply '(lambda () (vla-Remove (vla-GetExtensionDictionary (vla-Get-Layers (vla-Get-ActiveDocument (vlax-Get-Acad-Object)) ) ) "ACAD_LAYERFILTERS" ) ) ) (princ) )

Save it ie. PURGEFILTERS.LSP and run. Remember to use the parentheses with the command.

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required