Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: MatthiasVDE on April 06, 2016, 07:02:40 pm
-
I created some use cases and now I want t change the colors of them in function of a progress state:
Busy -> orange
Done -> green
I tried with stereotypes and shape scripts, but I can't just change the color with that, only draw a completely new shape.
-
Well, there's SetFillColor(red,green,blue) in shape script.
q.
-
Well, there's SetFillColor(red,green,blue) in shape script.
q.
Yes, and IIRC you can combine that with drawnativeshape() to get the same shape but only a different color.
Geert
-
So the only option is to draw and fill a new shape? I can't just colorize the existing use case?
-
If you use DrawNativeShape() you are actually drawing the standard use case shape.
How is this different from what you expect?
Geert
-
Hey,
I would add a Legend to the diagram and use the 'Apply Auto color' option. Than you can define the status as 'Value' and the usecase will appear automatically in the desired Color.
Tschüs
Rudi
-
Hey,
I would add a Legend to the diagram and use the 'Apply Auto color' option. Than you can define the status as 'Value' and the usecase will appear automatically in the desired Color.
Tschüs
Rudi
Yes, true, that could work too. This feature was added in v 12.1 I think.
Geert
-
MatthiasVDE
If you want to color your Use Case (or other) elements according to some "status" then Rudi's suggestion of a Legend could be what you need.
And you can change/add to the list of built-in status using:
- the menu option: Project, Settings, Project Types, General Types, Status
- or menu option: Diagram, Appearance, Configure Status Colors...
That will let you add status of Busy and Done and choose what color you want for them.
See here in the User Guide: http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/statustypes.html (http://sparxsystems.com/enterprise_architect_user_guide/12.1/building_models/statustypes.html) Note the bit about "Applies To" Use Cases.
And for Legends: http://sparxsystems.com/cgi-bin/search/search.pl?Terms=Legend&Realm=12.1+help (http://sparxsystems.com/cgi-bin/search/search.pl?Terms=Legend&Realm=12.1+help)
Note that I'm using EA 12.1, I think some menus have changed from version to version.
-
That works, thank you.