How do i get the values of the attributes of a named block in vb.net??
I have a block called "version" with attrubutes "versionnr" and "scale"
I need to read them by opening drawing.
I hope that someone can help me.
Solved! Go to Solution.
To access the attributes of a block, use the AttributeCollection property of a BlockReference. Once you've found your "VERSION" block:
If acBlockRef was the block reference,
For Each acAttribID As ObjectID In acBlockRef.AttributeCollection
Dim acAttribRef As AttributeReference = acTrans.GetObject(acAttribID, OpenMode.ForRead)
Select Case acAttribRef.Tag.ToUpper
Case "VERSIONNR"
'Do Something
Case "SCALE"
'Do Something
Next acAttribID
@Anonymous wrote:How do i get the values of the attributes of a named block in vb.net??
I have a block called "version" with attrubutes "versionnr" and "scale"
I need to read them by opening drawing.
I hope that someone can help me.
Can't find what you're looking for? Ask the community or share your knowledge.