AutoCAD 2000/2000i/2002 Archive (Read Only)
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Deleting Layer Filters

23 REPLIES 23
Reply
Message 1 of 24
Anonymous
369 Views, 23 Replies

Deleting Layer Filters

Is there a way to delete layer filters in bulk, not just one by one??
23 REPLIES 23
Message 2 of 24
Anonymous
in reply to: Anonymous

There is a LISP floating around here that does it: do a search.

--
Dean Saadallah
Add-on products for LT
http://www.pendean.com/lt
--
Message 3 of 24
Anonymous
in reply to: Anonymous

try CDG Purge it may help you it free download at www.caddevelopment.com


chao
jay

"James Espinoza" wrote in message
news:f195e62.-1@WebX.maYIadrTaRb...
> Is there a way to delete layer filters in bulk, not just one by one??
>
>
Message 4 of 24
patrick_aps
in reply to: Anonymous

layer filters are stored in a tiny file of your AutoCAD installation. Change something in the layer filters, stop AutoCAD, find all files changed today in you AutoCAD folder and subfolder. I don't remenber the name, but it had extension LAY or LST or so. Delete it, start AutoCAD, if the layer states are still there, undelete it,an delete another of the search results...
Message 5 of 24
Anonymous
in reply to: Anonymous

"patrick_aps" wrote
> layer filters are stored in a tiny file of your AutoCAD installation.

Uh, no the're not, they are stored as a dictionary in the layer table.
Message 6 of 24
patrick_aps
in reply to: Anonymous

soory, my mistake,
the layer states of the bonus/express tools were, to my knowledge. Those of 2000i and later most likely not.
Message 7 of 24
Anonymous
in reply to: Anonymous

"patrick_aps" wrote in message news:f195e62.4@WebX.maYIadrTaRb...
> soory, my mistake,
> the layer states of the bonus/express tools were, to my knowledge. Those of 2000i and later most likely not.

I think you are confusing layer *states* with named layer *filters*.
Message 8 of 24
Tony_R
in reply to: Anonymous

Or just copy-paste this into a LSP file & go.

(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)
)
Message 9 of 24
cadtown
in reply to: Anonymous

Try http://www.cadtown.com
Message 10 of 24
jun3lynwes
in reply to: Anonymous

I have this LSP file (LayerFiltersDelete) loaded automatically, but how do you make it automatically perform the function.
Message 11 of 24
jun3lynwes
in reply to: Anonymous

I downloaded this file (DeleteAllLayerFilters.VLX), but there is no instruction on how to make this work. Is this suppose to automatically perform its function?
Message 12 of 24
Anonymous
in reply to: Anonymous

Place the file in the support folder, at the command line type (load"DeleteAllLayerFilters) it should autorun and tell you that the layer filters are deleted ...if not, type DeleteAllLayerFilters . -- Chip Harper Autodesk Discussion Group Facilitator http://home.comcast.net/~hot4cad/
Message 13 of 24
Anonymous
in reply to: Anonymous

APPLOAD command. -- Dean Saadallah Add-on products for LT http://www.pendean.com/lt --
Message 14 of 24
Anonymous
in reply to: Anonymous

oops ...typo there should be ...(load"DeleteAllLayerFilters") note the closing quote ... -- Chip Harper Autodesk Discussion Group Facilitator http://home.comcast.net/~hot4cad/
Message 15 of 24
jun3lynwes
in reply to: Anonymous

(load"DeleteAllLayerFilters") , this will load it to the file but you still have to type "DALF" to start cleaning up.
How about automatically initiating the command when you open up the file.
Message 16 of 24
Anonymous
in reply to: Anonymous

Create a button with this .... ^C^C(if (not c:DALF)(load"DeleteAllLayerFilters"));DALF; .. if the utility is not already loaded, it will load it and run it... if already loaded it will just run it. -- Chip Harper Autodesk Discussion Group Facilitator http://home.comcast.net/~hot4cad/
Message 17 of 24
jun3lynwes
in reply to: Anonymous

I appreciate your quick response to my inquiry.
If I create a button for this utility, that means somebody has to physically click on that button to run it.
On earlier version of AutoCAD, I added a line in the "AutoExec" that purge the drawing when it opens. I was looking for something similar.
Thanks
Message 18 of 24
Anonymous
in reply to: Anonymous

You can place this in the acadXXXXdoc.lsp file to autoload and run with each fileopen.... (load"DeleteAllLayerFilters") (c:DALF) This file is loaded automatically by AutoCAD every time a drawing is opened. It establishes an autoloader and other utility functions. -- Chip Harper Autodesk Discussion Group Facilitator http://home.comcast.net/~hot4cad/
Message 19 of 24
jun3lynwes
in reply to: Anonymous

Thank you!
Message 20 of 24
Anonymous
in reply to: Anonymous

Your Welcome :-) -- Chip Harper Autodesk Discussion Group Facilitator http://home.comcast.net/~hot4cad/

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report