Results 1 to 3 of 3

Thread: Wblock and filters...Help!!!

  1. #1
    Geoff Olner Guest

    Wblock and filters...Help!!!

    Generally using Wblock to "block out" items from a file will result in all
    filters from the inital file also being attached to the second file.

    Whilst in some cases this is "irritating" I have a particular file that I
    need to Wblock a portion from and DO require the filters to be taken with
    it. Unfortunately this refuses to happen on several different PC's.

    I guess there is a "system variable" that magically turns off the ability to
    extract the filters within individual files.

    Anyone know what it is, or any help on solving this problem? If so it may be
    useful to stop unwanted filters being taken with Wblocks in the future.

    Many thanks in anticipation.

    Geoff Olner
    Architectural Images -Sheffield

  2. #2
    Jeff Guest
    If you mean the Named Layer Filters then there is no way to stop them from
    propagating themselves in releases prior to 2005. I don't have 2005, but
    there may be such a variable in that version.

    For versions 2000- 2004 delete the unwanted filters in your drawings, load
    this lisp and type: filtrdel

    (defun c:filtrdel (/ names)
    (vl-Load-Com)
    (textscr)
    (princ "\nRoutine to delete all but the specified Layer filters. When
    entering filter
    names to retain, wildcards are allowed. i.e., entering \"zz*,xx*\" will
    delete all filters except those beginning with zz and xx.")
    (setq names (getstring "\nEnter filter names to retain, press Enter for
    none: "))
    (vl-Catch-All-Apply
    '(lambda ()
    (setq dicts (vla-GetExtensionDictionary
    (vla-Get-Layers
    (vla-Get-ActiveDocument
    (vlax-Get-Acad-Object)
    )
    )
    )
    )
    (vlax-for dict dicts
    (if (and (= (vla-get-name dict) "ACAD_LAYERFILTERS")
    (> (vla-get-count dict) 0))
    (progn
    (vlax-for filtr dict
    (if (not (wcmatch (vla-get-name filtr) names))
    (vla-delete filtr)
    )
    )
    )
    )
    )
    )
    )
    (graphscr)
    (princ "\nSpecified layer filters have been deleted.")
    (princ)
    )


    --
    Jeff
    check out www.cadvault.com
    "Geoff Olner" <geoff@aimages.demon.co.uk> wrote in message
    news:cpes6o$4r2$1$830fa79f@news.demon.co.uk...
    Generally using Wblock to "block out" items from a file will result in all
    filters from the inital file also being attached to the second file.

    Whilst in some cases this is "irritating" I have a particular file that I
    need to Wblock a portion from and DO require the filters to be taken with
    it. Unfortunately this refuses to happen on several different PC's.

    I guess there is a "system variable" that magically turns off the ability
    to
    extract the filters within individual files.

    Anyone know what it is, or any help on solving this problem? If so it may
    be
    useful to stop unwanted filters being taken with Wblocks in the future.

    Many thanks in anticipation.

    Geoff Olner
    Architectural Images -Sheffield

  3. #3
    R.K. McSwain Guest
    On 12/12/2004 8:00 AM Jeff wrote:

    If you mean the Named Layer Filters then there is no way to stop them from
    propagating themselves in releases prior to 2005. I don't have 2005, but
    there may be such a variable in that version.
    In 2005, named layer filters are not carried along with copy/paste,
    wblock/insert operations.

Similar Threads

  1. Selection Filters question
    By NYacad in forum AutoCAD
    Replies: 0
    Last Post: 08-24-2005, 08:58 PM
  2. WBLOCK DOES NOT WORK
    By chicagoro in forum AutoCAD
    Replies: 3
    Last Post: 12-03-2004, 11:49 AM
  3. Turn off Wblock preview
    By Jonathan in forum AutoCAD
    Replies: 2
    Last Post: 11-18-2004, 11:53 PM
  4. Layer Filters...
    By Sean Ewald in forum AutoCAD
    Replies: 6
    Last Post: 11-11-2004, 01:43 PM
  5. selection set filters
    By chuck in forum AutoCAD
    Replies: 7
    Last Post: 11-05-2004, 05:11 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
  •  
Other forums: Access Forum - Microsoft Office Forum - Exchange Server Forum