Book a Demo

Author Topic: Set Element Properties by Diagram Type  (Read 4824 times)

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Set Element Properties by Diagram Type
« on: April 21, 2015, 09:47:15 pm »
Can element color be changed depending on the diagram type?

I tried the "Template Package"-  I set red class on a Class diagram and a yellow one on a Component diagram.
In any case when I drag a class - even on a Component diagram, its color is red (and not yellow).

What is wrong?

Modesto Vega

  • EA Practitioner
  • ***
  • Posts: 1183
  • Karma: +30/-8
    • View Profile
Re: Set Element Properties by Diagram Type
« Reply #1 on: April 22, 2015, 02:53:11 am »
You can set the color locally for each diagram using the toolbox at the top of the diagram or globally using F4. The formatting toolbox at the top of the diagram overrides the global settings. Which method are you using to change the color of the class?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set Element Properties by Diagram Type
« Reply #2 on: April 22, 2015, 04:10:51 am »
Maybe you got mixed up with your various test. Try with a new blank repository.

q.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Set Element Properties by Diagram Type
« Reply #3 on: April 22, 2015, 09:25:03 am »
Quote
Can element color be changed depending on the diagram type?

I tried the "Template Package"-  I set red class on a Class diagram and a yellow one on a Component diagram.
In any case when I drag a class - even on a Component diagram, its color is red (and not yellow).

What is wrong?
Template Package doesn't distinguish between a class on a Class diagram and a class on a Component diagram. EA just copies the first class it finds.
« Last Edit: April 22, 2015, 09:25:22 am by KP »
The Sparx Team
[email protected]

Tehila1

  • EA User
  • **
  • Posts: 256
  • Karma: +0/-0
    • View Profile
Re: Set Element Properties by Diagram Type
« Reply #4 on: April 22, 2015, 10:10:56 pm »
Quote
Quote
Can element color be changed depending on the diagram type?

I tried the "Template Package"-  I set red class on a Class diagram and a yellow one on a Component diagram.
In any case when I drag a class - even on a Component diagram, its color is red (and not yellow).

What is wrong?
Template Package doesn't distinguish between a class on a Class diagram and a class on a Component diagram. EA just copies the first class it finds.


Well, so what is the best way to set different color to non- UML elements (such as Archimate elements), depending on diagram type?

Non UML elements cannot have more than one stereotypes.

Ideas?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Set Element Properties by Diagram Type
« Reply #5 on: April 22, 2015, 10:23:28 pm »
Yes, write an add-in...

q.