create objects in different locations in a "for" loop

create objects in different locations in a "for" loop

mohamed_slama
Not applicable
294 Views
1 Reply
Message 1 of 2

create objects in different locations in a "for" loop

mohamed_slama
Not applicable

smallexample.fsmHi,

In my model, in the OnReset trigger of a plane, I want to find in a table named "tote" if the value is different than 0, then create an object 'tote' for each value different to 0 and set the location of the tote following the corresponding positions in another table named "Locations".

Here is my model, it creates for each non-zero value a tote but it puts them in the same position.

Can someone helps me to resolve this problem ?

Thank you.

Slama

0 Likes
Accepted solutions (1)
295 Views
1 Reply
Reply (1)
Message 2 of 2

Matthew_Gillespie
Autodesk
Autodesk
Accepted solution

Here is an updated version of your model. I changed the code to do what you explained you wanted it to do. I hope that helps!



Matthew Gillespie
FlexSim Software Developer