question

Mohamed Slama avatar image
0 Likes"
Mohamed Slama asked Matthew Gillespie answered

create objects in different locations in a "for" loop

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

Choose One
create objecttablesetloc
smallexample.fsm (74.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
3 Likes"
Matthew Gillespie answered

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!


5 |100000

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