Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Boron on January 16, 2019, 10:00:59 pm

Title: How to access elements of a structured tagged value?
Post by: Boron on January 16, 2019, 10:00:59 pm
Hello,
I have a structured tagged value (a class PhysicalRange with a "Min" and a "Max" attribute).
Now I want to query the Min and Max value in a shape script.
Something like:
Code: [Select]
if( HasTag("PhysicalRange.Min", "") ) {
// do something
}
Is that possible?
And if Yes, where can I find information on this?

Accessing normal (unstructured) tags is easy. No problems with that.
Title: Re: How to access elements of a structured tagged value?
Post by: qwerty on January 16, 2019, 11:46:22 pm
No, that's not possible. You need to take that out of the MDG/tag definition manually.

q.
Title: Re: How to access elements of a structured tagged value?
Post by: Boron on January 17, 2019, 02:39:00 am
To say it in Trumps words: "So sad." :(