Page 1 of 3 123 LastLast
Results 1 to 10 of 24

Thread: Layer filters - again.

  1. #1
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,025

    Default Layer filters - again.

    I'm currently having to use 2000LT and I just found a way to delete all layer filters.
    Open the filters list, press and hold the mouse cursor on the delete button, place a weight on the keyboard Enter/Return key and release the mouse button. Walk away.

    Of course, you may already know this.
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  2. #2
    Certifiable AUGI Addict Wanderer's Avatar
    Join Date
    2001-12
    Location
    St. Louis
    Posts
    4,257

    Cool Re: Layer filters - again.

    Quote Originally Posted by jaberwok
    I'm currently having to use 2000LT and I just found a way to delete all layer filters.
    Open the filters list, press and hold the mouse cursor on the delete button, place a weight on the keyboard Enter/Return key and release the mouse button. Walk away.

    Of course, you may already know this.
    I dunno... sounds a little new-fangled and sophisticated for me.
    Melanie Perry @MistresDorkness
    Facilities CAD Management (FM - MEP/FP)
    Technical Editor
    Revit MEP 2013 Suite
    not all who wander are lost

  3. #3
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,025

    Default Re: Layer filters - again.

    Quote Originally Posted by Wanderer
    I dunno... sounds a little new-fangled and sophisticated for me.
    I think it's called "appropriate technology"
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  4. #4
    I could stop if I wanted to de-co1's Avatar
    Join Date
    2005-07
    Location
    Jhb - ZA
    Posts
    260

    Default Re: Layer filters - again.

    I read this somewhere before, but it didn't give a how-to on keeping the button pressed. So, I prefer to use a blob of prestik (blue-Tak / office plasticine) holding a pencil wedged under the bottom edge of my screen... This way it looks like some sort of experiment is taking place...

    So when someone asks, "What's that for?"

    You say, "It's some sort of experiment taking place!"

    They will walk away bewildered, because architectural practices don't have pencils anymore.



    Only problem with this, is that our drawings are so full of layer filters (in the thousands) that it took about 40 minutes to delete them from one drawing. It also reduces the files sizes here by about 85%...!

    I went as far as suggesting they have someone come in with a full package and site and clean them all up with the layer filters delete option in later versions of ACAD!
    David


    "Artists to my mind are the real architects of change, and not the political legislators who implement change after the fact."

    William S Burroughs

  5. #5
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,025

    Default Re: Layer filters - again.

    Quote Originally Posted by de-co1
    I read this somewhere before, but it didn't give a how-to on keeping the button pressed. So, I prefer to use a blob of prestik (blue-Tak / office plasticine) holding a pencil wedged under the bottom edge of my screen... This way it looks like some sort of experiment is taking place...

    So when someone asks, "What's that for?"

    You say, "It's some sort of experiment taking place!"

    They will walk away bewildered, because architectural practices don't have pencils anymore.



    Only problem with this, is that our drawings are so full of layer filters (in the thousands) that it took about 40 minutes to delete them from one drawing. It also reduces the files sizes here by about 85%...!

    I went as far as suggesting they have someone come in with a full package and site and clean them all up with the layer filters delete option in later versions of ACAD!

    I only got to this stage after spending literally (and I do mean to use "literally" literally) hours deleting filters - with names in at least five languages(!). The answer in my case was an M20 nut and bolt. I also suggested I could take the file home and use A2006 to do it. Not allowed.
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  6. #6
    I could stop if I wanted to
    Join Date
    2004-11
    Location
    Somewhere close to hell
    Posts
    228

    Default Re: Layer filters - again.

    Try this:
    Written by: R. Robert Bell

    Code:
    (defun C:Lyrdel	 ()
      (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))
    Last edited by rad.77676; 2006-02-27 at 07:17 PM.

  7. #7
    Certified AUGI Addict jaberwok's Avatar
    Join Date
    2000-12
    Location
    0,0,0 The Origin
    Posts
    8,025

    Default Re: Layer filters - again.

    Thank you but unfortunately, "I'm currently having to use 2000LT....."
    John B

    "With or without religion, you would have good people doing good things and evil people doing evil things. But for good people to do evil things, that takes religion." - Steven Weinberg.

  8. #8
    I could stop if I wanted to de-co1's Avatar
    Join Date
    2005-07
    Location
    Jhb - ZA
    Posts
    260

    Default Re: Layer filters - again.

    Quote Originally Posted by jaberwok
    ... I also suggested I could take the file home and use A2006 to do it. Not allowed.
    That's ridiculous. I don't know about you, but when I delete these filters, my file sizes change from 3mB plus, to usually anywhere between 400K and 1.2mB... If only they realised how this affects the life span of their hard drives, whether on the server or individual PCs, with the extra strain placed on writing extra information, how, in slower server environments, accessing info is slower, and when using slow PCs, working on that info is slower...
    David


    "Artists to my mind are the real architects of change, and not the political legislators who implement change after the fact."

    William S Burroughs

  9. #9
    Member
    Join Date
    2006-02
    Posts
    25

    Default Re: Layer filters - again.

    Since you were brave enough to admit how you did it. I'll fess up to my little secret. I used an eraser on edge with a stapler angled over the keyboard. The weight of the stapler was enough to keep the enter key depressed under the eraser.

    How resourceful we humans are.

    Thanks for sharing.

  10. #10
    Member jacep's Avatar
    Join Date
    2006-03
    Posts
    33

    Default Re: Layer filters - again.

    I had problems with some of my consultants. They would send me files that were averaging 6mb. after I ran the following, their drawings would be around 600k.

    Here is the lisp I use to clean up all the layer filters:

    Delete layer filters *
    Code:
    ;;; *
    ;;; Deleting named layer filters is achieved by deleting *
    ;;; the single XRecords in dictionary "ACAD_LAYERFILTERS" *
    ;;; If a layer filter is currently in effect the filter is *
    ;;; deleted but is visible in the Layer Dialog until one of *
    ;;; the 3 built-in filters is chosen. *
    ;;; The built-in filters cannot be deleted. *
    (vl-load-com)
    (defun C:Delfilters (/		cmd  activeDoc xDictLayers
    	   flag	  xtype  xvalue	layfilters
    	   count	 tmp  tmpName   ask
    	  )
      (setq activeDoc   (vla-get-ActiveDocument (vlax-get-acad-object))
     xDictLayers (vla-getExtensionDictionary (vla-get-Layers activeDoc))
     cmd	 (getvar "CMDECHO")
      )
      (setq flag nil)
      (setvar "CMDECHO" 0)
      (if (/= (vla-get-count xDictLayers) 0)
    	(progn (setq layfilters (vla-item xDictLayers "ACAD_LAYERFILTERS"))
    	(setq count (vlax-get-property layfilters 'Count))
    	)
    	(setq count 0)
      )
      (command "UNDO" "Begin")
      (if (= count 0)
    	(princ "\nDrawing contains no named layer filters")
    	(progn
    	  (prompt (strcat "\n" (itoa count) " layer filters found"))
    	  (initget "Keep Continue")
    	  (setq ask (getkword "\nKeep filters by name? Keep/<Continue>: "))
    	  (cond ((= ask "Keep")
    	  (setq pattern (getstring "Name pattern or <*>: "))
    	  (if (= pattern "")
    		(setq pattern "*")
    	  )
    	 )
    	 (T (setq pattern "Nothing is impossible!"))
    	  )
    	  (repeat count
     (setq tmp (vla-item layfilters (- count 1)))
     (setq tmpName (vlax-get-property tmp 'Name))
     (if (not (wcmatch tmpname pattern))
       (if (not flag)
    	 (progn
    	   (initget "Yes No All")
    	   (setq ask (getkword
    	 (strcat "\nDelete layer filter "
    	  tmpName
    	  "? Yes/<No> or All: "
    	 )
       )
    	   )
    	   (cond ((= ask "Yes")
    	   (vla-delete tmp)
    	   (princ (strcat "\nFilter " tmpName " deleted"))
    	  )
    	  ((= ask "All")
    	   (vla-delete tmp)
    	   (princ (strcat "\nFilter " tmpName " deleted"))
    	   (setq flag T)
    	  )
    	   )
    	 )
    	 (progn (vla-delete tmp)
    	 (princ (strcat "\nFilter " tmpName " deleted"))
    	 )
       )
     )
     (setq count (1- count))
    	  )
    	)
      )
      (command "UNDO" "End")
      (setvar "CMDECHO" cmd)
      (princ)
    )
    I run the lisp within the following macro:

    ^C^C_AUDIT;Y;_DELFILTERS;;ALL;-purge;_all;*;_n;;_all;*;_n;;_all;*;_n;;_all;*;_n;;_all;*;_n;isavepercent;0;_qsave;

    It will clean out any drawing.

    Jace Paddleford

    [ Moderator Action = ON ] What are [ CODE ] tags... [ Moderator Action = OFF ]
    Last edited by Mike.Perry; 2006-03-13 at 10:11 AM. Reason: [CODE] tags added.

Page 1 of 3 123 LastLast

Similar Threads

  1. Layer Filters
    By shelley.rutmanis in forum AutoCAD LT - General
    Replies: 4
    Last Post: 2011-10-10, 12:50 PM
  2. layer filters
    By richardronan in forum AutoCAD General
    Replies: 1
    Last Post: 2009-12-10, 02:28 PM
  3. Layer Filters
    By harry.77503 in forum AutoCAD General
    Replies: 4
    Last Post: 2005-07-27, 04:32 PM
  4. Layer Filters
    By cadconcepts in forum AutoCAD General
    Replies: 2
    Last Post: 2005-01-10, 06:02 PM
  5. Layer filters, anyone?
    By gbrowne in forum AutoCAD LT - General
    Replies: 1
    Last Post: 2004-07-20, 07:15 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •