Can I avoid custom animation code if no probe is set?

Categories:
Solution Number:
S20620
Last Modified:
2013-08-20
Issue

Can I avoid custom animation code if no probe is set?

Solution

Yes. If you call the Kernel Procedure op_anim_lprobe_anvid () at the beginning of your simulation it will return the constant OPC_ANIM_ANVID_NONE if there is not a custom animation probe set with the specified label. You can then an if-statement in front of your custom animation code which only executes the code if (anvid != OPC_ANIM_ANVID_NONE). For more information on op_anim_lprobe_anvid () see the Simulation Kernel/Anim-Pk Manual.

Environment

Animation->2D,DES Kernel->Process Modeling/Coding

Attachments
NOTICE: Riverbed® product names have changed. Please refer to the Product List for a complete list of product names.
Can't find an answer? Create a case