Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: elr on January 12, 2025, 05:13:34 am
-
Hello all,
I am stucked with the inability to automatically unset 'Show Namespace' option at creation of custom sequence diagrams .
APi seems to provide a RW attribute (HighlightImports) to set it off but how to assign a script running this job whenever user create a new sd ?
Thank you
Eric
-
You probably don't need a script at all. You can use the template package to set these type of defaults for your diagrams.
Geert
-
Thx Geert but what is a template package in this context ?
I started setting dataex and pdata attributes with no success (showForeign=0" doesn't work) then some posts led me to API and scripts...
What would be the recipe through these template package ?!
:o
Eric
-
see here: https://sparxsystems.com/enterprise_architect_user_guide/17.0/modeling_fundamentals/using_element_templates.html (https://sparxsystems.com/enterprise_architect_user_guide/17.0/modeling_fundamentals/using_element_templates.html)
The properties of the diagrams in that package will be copied to any new diagram of that type. No scripting required.
Geert
-
That's perfect for me and so simple.
I did not know this capability...
Thank you Geert !
Eric