Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Patrick Julian on January 29, 2013, 03:08:17 am
-
For Use Cases and Test Classes/Suites, EA does support a rectangle notation instead of the default elliptic appearance. (As described here: http://www.sparxsystems.com/enterprise_architect_user_guide/modeling_languages/usingrectanglenotation.html)
Is it possible to make the rectangular notation the [ EA-wide | project-wide | package-wide ] default for test classes/suites?
Kind regards
Patrick
-
AFAIK there is no such setting. But you could catch EA_OnPostNewDiagramObject and modify ObjectStyle in t_diagramobjects so it appends "URect=1;". I don't know whether you can supply that to the Style parameter in the API since the documentation does not tell. Maybe you give it a try.
q.
[edit] Yes, the API supports it. But instead of simply appending the attribute you need to read out Style (although the docu explicitly tells you can't do it) and eventually modify URect=0 to URect=1.
-
Thanks a lot for sharing this. Personally, I haven't made use of the API yet. However, I'm thinking about giving it a try. Hopefully this will also be helpful to other users!