question

SudheerReddy avatar image
0 Likes"
SudheerReddy asked tannerp answered

Representing token delay visualization in the 3D model

As show in below image, for token delay the color is changing from light green to thick green is visually seen based on the time remaining in process flow. In similar way for flow item also can we show in 3D model based on the time remaining changing the flow item color from light brown to thick brown. Token and Flow item are linked in this present model. Attached is the model for your reference.

flowitemlink.fsm

FlexSim 20.0.0
flowitemchange color
flow.jpg (39.6 KiB)
flowitemlink.fsm (26.9 KiB)
· 2
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Joerg Vogel avatar image Joerg Vogel commented ·

You change the color in the OnDraw trigger by run time progress of the simulation run. Because this trigger depends on the run speed, you need another time fixed event, when the color change is done. You send a delayed message that change finally the color.

0 Likes 0 ·
SudheerReddy avatar image SudheerReddy commented ·

Apart from OnDraw Trigger, is there any other way of achieving the same.

Thanks

0 Likes 0 ·

1 Answer

·
tannerp avatar image
0 Likes"
tannerp answered

@Sudheer R

The OnDraw trigger is by far the easiest way to accomplish this, which is why Jörg suggested it. If you'd like to stick to the Process Flow, though, you can achieve a similar behavior with proper configuration. I've created a small example model that will demonstrate this.

In the example, the Event-Triggered Source listens to the Delay activity so that when a token passes into the Delay activity, another token is created and given labels of "incVal" (to track the loop) and "greenVal" (to assign color value). The loop then assigns a new color every second to the box. You can change this interval however you like, but you need to make sure that the loop ends before the object is destroyed. At the end of the loop, both incVal and greenVal are incremented/decremented and once incVal hits a value of 25 (for the 25 seconds in the delay), the token exits the loop and is destroyed.

Hopefully this helps. I'd still recommend using an OnDraw trigger, but maybe this will help lead you to a solution that works even better. Here's the example: flowitemcolorchange.fsm


5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.