Author Topic: Named Layer Filters  (Read 5854 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.

Fuccaro

  • Guest
Named Layer Filters
« Reply #15 on: June 22, 2004, 01:19:53 AM »
CAB
What was I going to do without you?
I tried to create the script file before I posted my previous message but I didn’t use the command line version of the CDG Purge. Even at the load, a message tells you that a command line version exists… In the future I must pay more attentions at the AutoCAD messages!
I lot of space will free up on my computer!

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Named Layer Filters
« Reply #16 on: June 22, 2004, 08:55:06 AM »
you are welcome.
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.

elsos

  • Guest
Named Layer Filters
« Reply #17 on: June 22, 2004, 01:09:19 PM »
Slim stated-
"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've found this to be true. Just CDG purged all and then when I tried to open the drawing, it says it is corrupted, and won't open.:shock:
But it is about half the size, so get to have a lesser sized file that doesn't work.

Thank goodness for .bak files!

-E

pmvliet

  • Guest
Named Layer Filters
« Reply #18 on: June 23, 2004, 01:22:33 PM »
I tried to use -cdgpurge in a script but for some reason it would just get into a continuos loop at the command prompt?

Did you get it to work. This is what was in my script
Code: [Select]
;cdg purge
-cdgpurge a
;end of script


CAB: where can one find batchlisp.lsp?

Pieter

MSTG007

  • Gator
  • Posts: 2601
  • I can't remeber what I already asked! I need help!
Named Layer Filters
« Reply #19 on: June 23, 2004, 01:49:11 PM »
ONE WORD.... WOW
Civil3D 2020

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Named Layer Filters
« Reply #20 on: June 23, 2004, 01:55:51 PM »
Quote from: pmvliet
CAB: where can one find batchlisp.lsp?Pieter


http://new.cadalyst.com/code/browseyear.cfm?fullyear=2004#6
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.

VerticalMojo

  • Guest
Named Layer Filters
« Reply #21 on: July 19, 2004, 03:31:51 PM »
If you open the named Layer filters box, select the first layer then click delete, you can hold down the enter button right after and it will go through all those layers deleting them quicker than it would to click delete over and over........



Since I only have LT this works fine for me......

Thought I would just share that since I just figured it out.....  8)

Andrew H

  • Guest
Named Layer Filters
« Reply #22 on: July 19, 2004, 03:38:29 PM »
Has anyone figured out how to get the cdg purge to work in a script? (currently if you run cdg purge in a script it gets stuck in a loop)