Author Topic: Named Layer Filters  (Read 5855 times)

0 Members and 1 Guest are viewing this topic.

elsos

  • Guest
Named Layer Filters
« on: June 04, 2004, 09:41:55 AM »
Probably a simple one for all... is there a simple way to delete all of the Named Layer Filters (exept for the three standard default)??
I have a thousand of them in some of the drawings we recieve from others, and it is quite painful to find the ones you create.  The only way Ive been able to do this is one-by-one, not very fun or productive.

Thanks in advance.

BTW: acad 2002, LDD3
-Eric

Slim©

  • Needs a day job
  • Posts: 6566
  • The Dude Abides...
Named Layer Filters
« Reply #1 on: June 04, 2004, 09:56:12 AM »
Try this:

Code: [Select]
(defun C:LFD  ()
 (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))
I drink beer and I know things....

elsos

  • Guest
Named Layer Filters
« Reply #2 on: June 04, 2004, 10:02:22 AM »
Awesome.
Total stud. thanks muchly!

Andrew H

  • Guest
Named Layer Filters
« Reply #3 on: June 04, 2004, 02:17:28 PM »
You can also try a product named CDG PURGE which includes a named layer filter deleter, plus lots of other purge stuff. Very nice program and free.

Slim©

  • Needs a day job
  • Posts: 6566
  • The Dude Abides...
Named Layer Filters
« Reply #4 on: June 04, 2004, 04:03:27 PM »
Quote from: Andrew H
You can also try a product named CDG PURGE which includes a named layer filter deleter, plus lots of other purge stuff. Very nice program and free.


CDG Purge is very good. Just use caution, if you are also using LDD. You might delete some of the hidden "Registered Applications" that LDD uses, and your drawings, could be corrupted.
I drink beer and I know things....

elsos

  • Guest
Named Layer Filters
« Reply #5 on: June 04, 2004, 04:22:07 PM »
Right on, thanks.
-E

Andrew H

  • Guest
Named Layer Filters
« Reply #6 on: June 07, 2004, 10:07:13 AM »
What is LDD? Sounds interesting!

Slim©

  • Needs a day job
  • Posts: 6566
  • The Dude Abides...
Named Layer Filters
« Reply #7 on: June 07, 2004, 10:14:50 AM »
Quote from: Andrew H
What is LDD? Sounds interesting!


LDD = Land Development Desktop

It's a Civil Engineering/Survey Program.

Checkout the AutoDesk Website.
I drink beer and I know things....

Andrew H

  • Guest
Named Layer Filters
« Reply #8 on: June 07, 2004, 10:16:01 AM »
OIC. Thanks for the info.

VerticalMojo

  • Guest
Named Layer Filters
« Reply #9 on: June 10, 2004, 05:12:31 PM »
Just what I needed. I just noticed the layer filters in my drawings.... Ridiculous amount of'em....

Thanks!

Now if there was a easy way in LT....  :?

Andrew H

  • Guest
Named Layer Filters
« Reply #10 on: June 11, 2004, 10:30:04 AM »
And if you use that CDG Purge you'll notice a lot of other ridiculous amounts of unused things. Like on one of my drawings has 1000 unused Registered Applications and 2000 Empty Grounds, not including the 350+ named layers filters and 100+ LMAN layer states. Some people do some pretty unbelievable things to these drawings.

VerticalMojo

  • Guest
Named Layer Filters
« Reply #11 on: June 11, 2004, 11:36:54 AM »
Can you post the link to get CDG Purge?  :?:

elsos

  • Guest
Named Layer Filters
« Reply #12 on: June 11, 2004, 11:45:50 AM »
http://www.caddevelopmentgroup.com/downloads/

Haven't used it though, but looking forward to ridding of the mass.

-Eric

Fuccaro

  • Guest
Named Layer Filters
« Reply #13 on: June 21, 2004, 07:55:35 AM »
CGD purge: very good program! It would be great to use it in batch mode to purge all the drawings I have on my hard drive.
I will purge my drawings one by one. It will be a long work, but it worth.
Thanks for the link!

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Named Layer Filters
« Reply #14 on: June 21, 2004, 07:30:15 PM »
Quote from: Fuccaro
CGD purge: very good program! It would be great to use it in batch mode to purge all the drawings I have on my hard drive.
I will purge my drawings one by one. It will be a long work, but it worth.
Thanks for the link!


You may be interested in this :
Quote
BatchLisp.lsp ReadMe.txt file.    [ For AutoCAD Release 2000 thru 2004 ]

 Version 1.0     3/25/04

 What this program does:
       1.  Allows you to select multiple drawings.
       2.  Allows you to select an autolisp program.
           [ See BatchTest.lsp below ]
       3.  Creates a script file.
       4.  Runs the script file on all drawings selected.
       5.  Each drawing loads the autolisp program and executes it.
       6.  Each drawing is saved before exiting.
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.