What is the purpose of skinparam IconIEMandatoryColor?

0 votes
asked Jul 21, 2023 in Question / help by Holger

My understanding of "skinparam IconIEMandatoryColor" is to change the color of the mandatory attribute in an enterprise relationship diagram as in below code:

@startuml
'https://plantuml.com/ie-diagram

skinparam IconIEMandatoryColor red

entity A {
* id_A
--
attribute_A
}

entity B {
* id_B
--
attribute_B
}

A --|{ B

@enduml

image

Unfortunately it is not working as the dot stays black. Am I missing something or am I having it wrong?

thx for your support, Holger

1 Answer

0 votes
answered Jul 21, 2023 by The-Lu (89,080 points)

Hello H., and all,

Use preferentially style for that, like:

@startuml

<style>
IEMandatory {
    LineColor green
    BackgroundColor red
}
</style>

entity A {
* id_A
--
attribute_A
}

entity B {
* id_B
--
attribute_B
}

A --|{ B

@enduml

Ref.:

Enjoy,
Regards,
Th.

commented Jul 21, 2023 by Holger
Perfect, works, thx a lot.
...