BrianMorse.com
Home Page Journal Page Services Page Tips Page eStore About Page

Purging Named Layer Filters from a Drawing

Named Layer filters can show up in your drawing when you don't want them to. Usually this is caused by inserting a block that has named layer filters defined inside the drawing file. I found several solutions within the Autodesk Newsgroups to help you purge these unwanted filters.

JSD suggests the following code.
(defun C:LayerFiltersDelete () (vl-Load-Com) (vl-Catch-All-Apply '(lambda () (vla-Remove (vla-GetExtensionDictionary (vla-Get-Layers (vla-Get-ActiveDocument (vlax-Get-Acad-Object)))) "ACAD_LAYERFILTERS"))) (princ "\nAll layer filters have been deleted.") (princ)) (defun C:LFD () (C:LayerFiltersDelete))

In 2004 you can use the Delete All button within Named Layer Filters dialog box. Use the LAYER command to open the Layer Properties Manager dialog. Next, click the ellipsis button (...) next to the Named layer filters drop down list to open the Named Layer Filters dialog.
(ADT users must type ._LAYER at the command line to open the AutoCAD version of the Layer Properties Manager dialog)
Back to Tips page.