Book a Demo

Author Topic: Cardinality by default  (Read 6235 times)

utilisateurEA

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Cardinality by default
« on: April 16, 2010, 04:51:33 pm »
Hello,

I'd like to change the value of the default cardinality of some links like an association. Is it possible to make a profile to change it . I saw that it could be possible with a script using ConnectorEnd but I would like to do it with a profile.

With the same idea I'd like to change the color of certain elements like a attached note. Do I have to create a new stereotype or it is possible to change parameters of EA to make it ?

Thank you
« Last Edit: April 16, 2010, 04:52:07 pm by utilisateurEA »

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cardinality by default
« Reply #1 on: April 16, 2010, 05:04:30 pm »
You can change the default appearance of elements, so I guess that should work for the notes as well.
If you can't find the regular setting, try the templates package.

Geert

utilisateurEA

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Cardinality by default
« Reply #2 on: April 16, 2010, 06:36:58 pm »
How do you change the appearance of an element ?

I've searched in the help guide and tried to use Tool->Options-> Diagram apprereance.
But I could find solmething to change the appeareance of all the elements of the same types (here you can change to font of everey elements, I just want to change one kind of element (note for example or something else but only one kind ... )
I also tried right click/defaukt appearance but it is not genereal and only affects tyhe current element.


Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cardinality by default
« Reply #3 on: April 16, 2010, 07:05:40 pm »
Have you tried the templates package?

Geert

utilisateurEA

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Cardinality by default
« Reply #4 on: April 16, 2010, 07:29:37 pm »
Hi Geert,

Do you mean the transformation Template ? Because the template package only manages architecture doesn't it ?
So I indeed tried the transformation Template, but I don't know how to set neither the cardinality of a link nor the color of an element. The help does not give many information about this. So I tried all the same but without any sucess.
I think my main problem is that I can't access to a window/menu with properties of an element (in Setting or in transformation template (in the transf template I have only general elements like class or attribute, but not all the elements)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Cardinality by default
« Reply #5 on: April 16, 2010, 09:16:03 pm »
No, I meant the template package.
see this help page

I don't think it's going to do something for the cardinalities, but colors should be possible.

Geert
« Last Edit: April 16, 2010, 09:16:46 pm by Geert.Bellekens »

RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: Cardinality by default
« Reply #6 on: April 19, 2010, 10:43:01 am »
For changing the appearance of one type of element, through the user interface, the templates package will do the job. A common element - such as a Note - appears as defined on any diagram type.

For other ways of changing an element's appearance, see this topic:

http://www.sparxsystems.com/uml_tool_guide/modeling_tool_features/formattoolbar.htm

It is for changing an instance of an element on one diagram only, but refers you to other topics for a) changing the appearance of a selected element wherever it occurs and b) all elements of a selected type, throughout the model.

For cardinality, ordinarily an Association does not have a default. However, I am reliably informed that you can create an Add-In with an EA_OnPostNewConnector event to apply the required cardinality after the connector is created. Not sure how you define the source and target cardinalities. That is about as deep as I can go on that subject area!
« Last Edit: April 19, 2010, 10:50:05 am by RoyC »
Best Regards, Roy