Named Layer Filters

Named Layer Filters

Anonymous
Not applicable
753 Views
10 Replies
Message 1 of 11

Named Layer Filters

Anonymous
Not applicable
Is there a way to access a drawing's Named Layer Filters via VBA?
0 Likes
754 Views
10 Replies
Replies (10)
Message 2 of 11

Anonymous
Not applicable
Yes, it's posted in these NG's at least once a day.

"spanqy" wrote in message
news:f1a441d.-1@WebX.maYIadrTaRb...
> Is there a way to access a drawing's Named Layer Filters
via VBA?
>
0 Likes
Message 3 of 11

Anonymous
Not applicable
Everyday, huh? Not quite RK! If you're going to take the time to post, at least be constructive and give me a link to one of these posts - it would save the both of us time.
0 Likes
Message 4 of 11

Anonymous
Not applicable
Whilst RK's reply was a little sarcastic, this newsgroup does encourage people seeking information to do their own searches first rather than having the answers (ie links) spoon-fed to them.



Just my two cents.



Wayne Ivory

IT Analyst Programmer

Wespine Industries Pty Ltd
0 Likes
Message 5 of 11

Anonymous
Not applicable
    Dim oDict As
AcadDictionary
    Dim LayFlt As Object
   
Dim oXrec As AcadXRecord
    Dim xType As Variant, xValue As
Variant

 

    Set oDict =
ThisDrawing.Layers.GetExtensionDictionary
    Set LayFlt =
oDict.item("ACAD_LAYERFILTERS")
    Set oXrec =
LayFlt("nplt")

 

    oXrec.GetXRecordData xType,
xValue
    MsgBox "Layer Filter name: " &
xValue(0)


Kevin


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
Is
there a way to access a drawing's Named Layer Filters via
VBA?
0 Likes
Message 6 of 11

Anonymous
Not applicable
Thanks a bunch Kevin!
0 Likes
Message 7 of 11

Anonymous
Not applicable
I agree, but how can he (or anyone) assume that I didn't already do just that?
0 Likes
Message 8 of 11

Anonymous
Not applicable
Spangy,
The only reason anyone could assume it, is because IF you had done a search
(like I just tested) you would've found about 50 messages in this newsgroup
dealing with this subject and in at LEAST one of them was the answer to your
question...... 😉

Jeff

"spanqy" wrote in message
news:f1a441d.5@WebX.maYIadrTaRb...
> I agree, but how can he (or anyone) assume that I didn't already do just
that?
0 Likes
Message 9 of 11

Anonymous
Not applicable
I could never get that to work here with Netscape (NNTP Error - command not recognized). I'm always forced to "manually" scan the posts to find what I'm after - NOT easy, but I do my best. Perhaps you can give me a suggestion in this regard?

That's what this board is all about right?
0 Likes
Message 10 of 11

Anonymous
Not applicable
Try Google.com. They mirror this ng. Use the
following syntax to narrow the search to this ng.

 

This will find post with the 3 words anywhere in
the post:

named layer
filter group:autodesk.autocad.customization.vba
 

This will find post with the 3 words together
in the post:

"named layer
filter" group:autodesk.autocad.customization.vba


--
--
Ed
--


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
could never get that to work here with Netscape (NNTP Error - command not
recognized). I'm always forced to "manually" scan the posts to find what I'm
after - NOT easy, but I do my best. Perhaps you can give me a suggestion in
this regard?

That's what this board is all about right?

0 Likes
Message 11 of 11

Anonymous
Not applicable
Thanks a lot Ed!
0 Likes