Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Uffe on February 12, 2016, 09:00:22 pm

Title: Attribute initializers in RTF templates
Post by: Uffe on February 12, 2016, 09:00:22 pm
Hej alla glada,


I've got a class model with plenty of generalizations and overridden attribute initializers.

Since these aren't attributes in the specialized classes, their values aren't output by an Element -- Attribute section in an RTF template.

Is there a way of producing them using regular templates? I'm on 11.1 here, but a 12.X answer is equally appreciated.

I can write a fragment to fix it, but it's a bit of a complex bugger because the attribute initializers are stored as key/value pairs in t_object.RunState. So if anyone's got one a sample fragment that fits the bill lying around that's good too.


Cheers,


/Uffe
Title: Re: Attribute initializers in RTF templates
Post by: Uffe on February 12, 2016, 09:13:04 pm
Clarification: an Element -- Inherited Attribute section only produces the names and default values, if any, of the attributes declared in a more general class. It does not output initializers.

/U