Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Vitek on October 14, 2009, 11:47:21 pm

Title: Tagged Value Inheritance
Post by: Vitek on October 14, 2009, 11:47:21 pm
Is it possible to access inherited Tagged Values in Macros when generating code please?
When I try to get %attTag:"my_value"% on attribute I only get values which are set on this attribute but not values preset on attribute type.
Thank you very much for information.
Best regards
   Vitek
Title: Re: Tagged Value Inheritance
Post by: Eve on October 15, 2009, 02:24:58 pm
The best I can suggest is EXEC_ADD_IN, I think attClassifierGUID is available.  If not you'll have to go from attGUID.
Title: Re: Tagged Value Inheritance
Post by: Oliver F. on October 15, 2009, 05:41:30 pm
Quote
The best I can suggest is EXEC_ADD_IN, I think attClassifierGUID is available.  If not you'll have to go from attGUID.

I second this. We are applying the same method to accomplish this.
You will have to create an addin in VB or C# and use the aforementioned EXEC_ADD_IN macro to call it by giving %attClassifierGUID% as a parameter.

There is no other way, actually.

Oliver
Title: Re: Tagged Value Inheritance
Post by: Vitek on October 15, 2009, 06:10:32 pm
Thank you very much for suggestion.
Vitek