Wblock and filters...Help!!!
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Wblock and filters...Help!!!

 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD
Author Message
Geoff Olner
Guest





Posted: Sat Dec 11, 2004 6:27 pm    Post subject: Wblock and filters...Help!!! Reply with quote

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

Back to top
Jeff
Guest





Posted: Sun Dec 12, 2004 7:00 pm    Post subject: Re: Wblock and filters...Help!!! Reply with quote

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...
Quote:
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

Back to top
R.K. McSwain
Guest





Posted: Mon Dec 13, 2004 5:43 am    Post subject: Re: Wblock and filters...Help!!! Reply with quote

On 12/12/2004 8:00 AM Jeff wrote:

Quote:
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.

Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> AutoCAD All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB