Does anyone know how to get the tag-information of the attrubutes of a block in visual basic?
I have made a blockreference, and i can get the attribute-values, but not the name of the attribute (tag)
Dear bdrouck,
1. You should get a block-reference object using object selection methods or any other method.
2. Attributes contained in a block reference can be accessed by the "GetAttributes" method as a variant.
Dim VA As Variant
VA=BlockRefObj.GetAttributes
3. Now the VA is an array including the attributes information in each element. To determining the number of elements (no. of attributes), you can use the functions LBOUND and UBOUND. The tag for each attribute is accessible using the "TagString" property.
VA(2).TagString