Author Topic: Default settings for test artifact rendering possi  (Read 2766 times)

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Default settings for test artifact rendering possi
« 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

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: Default settings for test artifact rendering p
« Reply #1 on: January 29, 2013, 03:34:01 am »
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.
« Last Edit: January 29, 2013, 03:45:47 am by qwerty »

Patrick Julian

  • EA User
  • **
  • Posts: 51
  • Karma: +0/-0
    • View Profile
Re: Default settings for test artifact rendering p
« Reply #2 on: January 29, 2013, 09:29:34 pm »
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!