setShape command reverts back to default after "Split".

setShape command reverts back to default after "Split".

kari_payton
Not applicable
22 Views
4 Replies
Message 1 of 5

setShape command reverts back to default after "Split".

kari_payton
Not applicable

[ FlexSim 21.2.4 ]

setShape.fsm

Is there a way to keep the color and shape changes after the token goes through a split box?

1651927969935.png

0 Likes
Accepted solutions (1)
23 Views
4 Replies
Replies (4)
Message 2 of 5

JordanLJohnson
Autodesk
Autodesk
Accepted solution

I don't think there's a way to have child tokens "inherit" the color and shape of their parent. Depending on what you are trying to do, you may be able to successfully use the Visualization tab of the Process Flow properties window:
https://docs.flexsim.com/en/22.1/Reference/GeneralModelSettings/ProcessFlowGeneralProperties/Process...

This allows you to change shape and color based on label value, and those are inherited. But in the case where you manually set the color and shape of the token, we don't have a way to copy those settings.

.


Jordan Johnson
Principal Software Engineer
>

0 Likes
Message 3 of 5

moehlmann_fe
Observer
Observer

The shape/color don't really 'revert'. The Split activity just doesn't copy these settings to the newly created token(s).

You can do this manually by reading the color and shape from the original token via the 'splitID'.

treenode otherToken = token.splitID;
token.color = otherToken.as(Token).color;
token.setShape(getsdtvalue(otherToken, "shape"));

You could post a suggestion to add an option to copy the color/shape to the split activity.

0 Likes
Message 4 of 5

kari_payton
Not applicable
thanks Jordan. This is better than I was thinking, so I don't have to manually set each flow in the large models.
0 Likes
Message 5 of 5

kari_payton
Not applicable
thanks for the response Felix, this works very well also!
0 Likes