Get atribute

Get atribute

nucliabrasil
Advocate Advocate
1,181 Views
1 Reply
Message 1 of 2

Get atribute

nucliabrasil
Advocate
Advocate

Hello guys!

I need to extract an attribute from a reference block at the time I read the segment.
Does anyone have a solution?
Thankful.

0 Likes
Accepted solutions (1)
1,182 Views
1 Reply
Reply (1)
Message 2 of 2

Ed__Jobe
Mentor
Mentor
Accepted solution

If you have a block object, you can use it's HasAttributes method to see if it has any. If it does, then its safe to use the GetAttributes method to return an array of Attributes. Just iterate the array looking for an attribute with the tag you are looking for. I'm sure you can find some sample code on this forum.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes