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
flexsim 21.1.4triggersondraw
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.

treenode otherTE = Model.find("TaskExecuter2");
createcopy(Model.find("TaskExecuter1>variables/ondrawtrigger"), otherTE.find(">variables"), 1);
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.

Omar Aguilera Rico avatar image Omar Aguilera Rico commented ·

Hi @Matthew Gillespie !

I want to make the AGV that is created for the scale, have the same color on which it is created. If it is yellow, the AGV that is scaled must be yellow. I also want to see if it is possible that the boxes that the AGV brings with me can also be scaled respecting the color of the box. How can I do this?

Zoom Out - In_2.fsm

0 Likes 0 ·
zoom-out-in-2.fsm (32.1 KiB)
Ben Wilson avatar image Ben Wilson ♦♦ commented ·

Hi @Omar Aguilera Rico ,

Looks like we dropped the ball with your follow-up question. Are you still looking for some help?


0 Likes 0 ·
Omar Aguilera Rico avatar image Omar Aguilera Rico Ben Wilson ♦♦ commented ·

Hi Ben, in the end I was able to solve it on my own, I appreciate the attention given by Matthew and the team.

0 Likes 0 ·

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.