Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: Modesto Vega on April 30, 2022, 01:27:43 am
-
Back to one my recent favourite subjects, activity diagrams.
Can anybody think of an easy way to render control and object flows differently - e.g., by changing the line colour or thickness?
Sparx EA renders them exactly the same, despite having different types, and I have several diagrams in which I would like to depict them differently.
-
There's an option somewhere in the option jungle (IIRC) to render control flows dashed like in SysML. Alternatively you can use shap scripts but then you have to stereotype them.
q.
-
Correct there is an option for dashed control flows in SysML, but it only affects the currently opened repository, it is not a global option.
Can be found at
Configure->Model->Options
For UML the only way I have achieved a different appearance for Control / Object Flows, is to colour / set width of one Control / Object Flow then use the Colour Picker / Dropper tools on the Layout menu. Not ideal but it works.
All the best
Phil
-
For UML the only way I have achieved a different appearance for Control / Object Flows, is to colour / set width of one Control / Object Flow then use the Colour Picker / Dropper tools on the Layout menu. Not ideal but it works.
Thanks Phil, this is the only way to it for UML, with the added complication that on version 15 (1560) I don't seem t be able to select multiple Object Flows - i.e., I have to format each Object Flow independently, very painful.
-
There was never a way to select more than one connector. They are 2nd class (or worse).
q.
-
There was never a way to select more than one connector. They are 2nd class (or worse).
q.
Well, you can if you open the relationships view.
But there are only a limited set of actions you can do an a selection of connectors.
Mostly updates to the appearance and style.
Geert
-
Uh, don't get me started with that. There are actually two flavors and either has defects making it worse than the other. EA has not been developed OO. How long took it to select more than one element to change common properties? Still that's only a crippled solution. Connectors had been abandoned from the beginning. There's so much broken stuff in EA. And the only thing we see each year is extra new broken stuff.
q.
-
Hi all,
I think that using a Legend object is good way to distinguish them. You can set colour and width for the Flows automatically. You do not need to set colours and width one by one.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_fundamentals/diagram_legends.html
HTH,
-
Hi all,
I think that using a Legend object is good way to distinguish them. You can set colour and width for the Flows automatically. You do not need to set colours and width one by one.
https://sparxsystems.com/enterprise_architect_user_guide/16.0/modeling_fundamentals/diagram_legends.html
HTH,
Thank you Takeshi, this is exactly what I am after. Does it work in version 15 (1560)?
-
Thank you Takeshi, this is exactly what I am after. Does it work in version 15 (1560)?
Yes, legends work in v15 as well.
Geert
-
Thanks Geert, Takeshi wrote
You can set colour and width for the Flows automatically. You do not need to set colours and width one by one.
I have a legend with the colours and widths for control objects flows set, the colours are set to grey and blue, the widths are set to 3 and 2. I cannot find a way to get the legend to set the colours and widths of all control and object flows in the diagram. Apply auto colour, apply line and apply width are all ticked on the legend.
-
Thanks Geert, Takeshi wrote
You can set colour and width for the Flows automatically. You do not need to set colours and width one by one.
I have a legend with the colours and widths for control objects flows set, the colours are set to grey and blue, the widths are set to 3 and 2. I cannot find a way to get the legend to set the colours and widths of all control and object flows in the diagram. Apply auto colour, apply line and apply width are all ticked on the legend.
What selection criterium did you use? You'll have to make sure your object flows are included in your selection.
Geert
-
What selection criterium did you use? You'll have to make sure your object flows are included in your selection.
I have tried with Filter set to Connector - None, Connector - Type, or Connector - Stereotype, and Applies to set to ControlFlow or ObjectFlow depending on the type. The end result is always the same, no change.
-
What selection criterium did you use? You'll have to make sure your object flows are included in your selection.
I have tried with Filter set to Connector - None, Connector - Type, or Connector - Stereotype, and Applies to set to ControlFlow or ObjectFlow depending on the type. The end result is always the same, no change.
Hey Modesto,
Are you able to get the Legends working with ANY connector? I have a sneaking recollection that they don't actually work with connectors[1]. Perhaps others can correct me. I just checked our common legends and NONE apply to connectors, only shapes.
HTH,
Paolo
[1] Perhaps, another case of connectors being second class citizens?
-
What selection criterium did you use? You'll have to make sure your object flows are included in your selection.
I have tried with Filter set to Connector - None, Connector - Type, or Connector - Stereotype, and Applies to set to ControlFlow or ObjectFlow depending on the type. The end result is always the same, no change.
Hey Modesto,
Are you able to get the Legends working with ANY connector? I have a sneaking recollection that they don't actually work with connectors[1]. Perhaps others can correct me. I just checked our common legends and NONE apply to connectors, only shapes.
HTH,
Paolo
[1] Perhaps, another case of connectors being second class citizens?
No, it works for connectors as well. (at least in v15.2.1559)
We use that to indicate the lifecycle on our architecture diagrams for both elements as connectors.
Geert
-
What selection criterium did you use? You'll have to make sure your object flows are included in your selection.
I have tried with Filter set to Connector - None, Connector - Type, or Connector - Stereotype, and Applies to set to ControlFlow or ObjectFlow depending on the type. The end result is always the same, no change.
Hey Modesto,
Are you able to get the Legends working with ANY connector? I have a sneaking recollection that they don't actually work with connectors[1]. Perhaps others can correct me. I just checked our common legends and NONE apply to connectors, only shapes.
HTH,
Paolo
[1] Perhaps, another case of connectors being second class citizens?
No, it works for connectors as well. (at least in v15.2.1559)
We use that to indicate the lifecycle on our architecture diagrams for both elements as connectors.
Geert
MyBad, then. Sorry!
However, I would still suggest testing the legend on other connector types and on other machines. One of our machines behaves anomalously and so we first confirm any anomalies we find on other machines before reporting a defect.
Paolo
Paolo
-
The answer is obvious. To get this working, the following needs to be done:
1. Tick Auto color
2. Set Filter to Connector.Type
3. Set applies to <All>
4. Create a new value for each connector type to be shown in the legend as follows:
4.a The Value must contain the exact connector type - e.g., Dependency, ControlFlow and ObjectFlow
4.b Set the Line Color to the desire color
4.c Tick Apply Line
4.d Set the Line Width to the desire color
4.e Tick Apply Line Width
I wish there was a simple "How To" guide instead of having to use a combination of having to read unhelpful help pages and post to this forum.
Thank you to Takeshi, Geert and Paolo for their help in piecing this together.