Manipulating and using layer groups with VBA

Manipulating and using layer groups with VBA

ericanastas
Enthusiast Enthusiast
320 Views
2 Replies
Message 1 of 3

Manipulating and using layer groups with VBA

ericanastas
Enthusiast
Enthusiast
I'm working on a project that involves a lot of layer manipulation. Is there a way to access filter groups using VBA? I can't find anything in the object model.

I see that there is a AcadLayerStateManager object, but from what I understand a layer state works on a static list of layers. The project I am working on deals with a lot of similar layers like UNIT1|DOORS, and UNIT2|DOORS, where I want to maniuplate all layers that contain "*|DOORS".

Is there anyway to identify all the layers in property filter, or group filter as a collection of layers?



Eric
0 Likes
321 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Frank Oquendo wrote a bas for that.
Set child = parent.AddObject("ACAD_LAYERFILTERS", "AcDbDictionary") it's all about the dictionary
0 Likes
Message 3 of 3

Anonymous
Not applicable
you can use the Like Operator

e.g.
MyCheck = "aBBBa" Like "a*a" ' Returns True.
0 Likes