I have a dynamic block which have some attributes and I'd like to get the contents of the attributes.
For example, if the block has 2 attributes, attr1_size and attr2_color,
and the value of attr1_size is small , and the value of attr2_color is red,
what I need is a list , (attr1_size small)(attr2_color red)
I thought the
(vlax-invoke (vlax-ename->vla-object block_name) 'GetAttributes)
will do this, but the result was like this.
(# #IAcadAttributeReference 0eef3e54>)
Is there any way to get the attribute value from the random sequence?
Or, any other code to get the value?
What I finally want to do is clicking a block and automatically insert some new figures according to the value of an attribute.
Thank you!