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

Accessing the attributes of Anonymous blocks

1 REPLY 1
Reply
Message 1 of 2
Anonymous
239 Views, 1 Reply

Accessing the attributes of Anonymous blocks

Does anyone have any idea how i would create a selection set of block including anonymous blocks. I would like to change our border into a dynamic block, but if I do that it is an anonymous block and I can not create a selection set of it.
Right now I am using something like this

FType(0) = 0: FData(0) = "INSERT"
FType(1) = 2: FData(1) = "*"

BorderSearch.Select acSelectionSetCrossing, ThisDrawing.GetVariable("extmin"), ThisDrawing.GetVariable("extmax"), FType, FData

But this will not select my new dynamic border because when I made it a dynamic block it changed into an anonymous block.
1 REPLY 1
Message 2 of 2
HJohn1
in reply to: Anonymous

You could try using the EffectiveName property of the blockreference.

FType(0) = 0: FData(0) = "INSERT"
FType(1) = 100: FData(1) = "DYNAMIC BLOCK NAME"

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

Post to forums  

Autodesk Design & Make Report

”Boost