question

Omar Aguilera Rico avatar image
0 Likes"
Omar Aguilera Rico asked Omar Aguilera Rico commented

Zoom In - Out / drawobject()

I create TaskExecuter during the model run and create a copy of a trigger to the TaskExecuter that was created during the run, but how can I make it apply the trigger on draw during the model run? Or is there another alternative to represent this?

Zoom Out - In.fsm

FlexSim 21.1.4
triggersflexsim 21.1.4ondraw
zoom-out-in.fsm (28.2 KiB)
5 |100000

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

1 Answer

Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Omar Aguilera Rico commented

You need to call rebindobjectattributes() on the object you copy the draw trigger in to.

  1. treenode otherTE = Model.find("TaskExecuter2");
  2. createcopy(Model.find("TaskExecuter1>variables/ondrawtrigger"), otherTE.find(">variables"), 1);
  3. rebindobjectattributes(otherTE);


· 3
5 |100000

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