Zoom In - Out / drawobject()

Zoom In - Out / drawobject()

omar_ar
Not applicable
331 Views
4 Replies
Message 1 of 5

Zoom In - Out / drawobject()

omar_ar
Not applicable

[ FlexSim 21.1.4 ]

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

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

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

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);




Matthew Gillespie
FlexSim Software Developer

0 Likes
Message 3 of 5

omar_ar
Not applicable

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
Message 4 of 5

Ben_WilsonADSK
Community Manager
Community Manager

Hi @Omar Aguilera Rico ,

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


0 Likes
Message 5 of 5

omar_ar
Not applicable

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