VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Named Layer Filters

10 REPLIES 10
Reply
Message 1 of 11
Anonymous
548 Views, 10 Replies

Named Layer Filters

Is there a way to access a drawing's Named Layer Filters via VBA?
10 REPLIES 10
Message 2 of 11
Anonymous
in reply to: Anonymous

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?
>
Message 3 of 11
Anonymous
in reply to: Anonymous

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.
Message 4 of 11
wivory
in reply to: Anonymous

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
Message 5 of 11
Anonymous
in reply to: Anonymous

    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?
Message 6 of 11
Anonymous
in reply to: Anonymous

Thanks a bunch Kevin!
Message 7 of 11
Anonymous
in reply to: Anonymous

I agree, but how can he (or anyone) assume that I didn't already do just that?
Message 8 of 11
Anonymous
in reply to: Anonymous

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?
Message 9 of 11
Anonymous
in reply to: Anonymous

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?
Message 10 of 11
Anonymous
in reply to: Anonymous

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?

Message 11 of 11
Anonymous
in reply to: Anonymous

Thanks a lot Ed!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost