question

Stefan99 avatar image
0 Likes"
Stefan99 asked Felix Möhlmann commented

How do I make a basicTE to load 2 objects

I have a project with my own elevator made with cinematic and I want to make it to load 2 objects on the turntable, it looks like this 1724827163716.png


On the triggers, I got all this done1724827225924.png

and the On Load code looks like this 1724827292603.png

on top of that I also created a MySurrogate to kinematically define the position where the box will be placed and it's called "MySurrogate1"


And I would like if you can help me to get it to load 2 objects and randomly download them on the transfer points. Varianta_2.fsm

FlexSim 24.2.0
basicteload unload
1724827163716.png (233.8 KiB)
1724827225924.png (56.3 KiB)
1724827292603.png (70.2 KiB)
varianta-2.fsm (1.0 MiB)
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

Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Felix Möhlmann commented

This is just a question of giving the TE the proper task sequence. For example by pushing the items to a list and using a Process Flow to loop between loading two items and unloading them.

varianta-2_1.fsm

Though you might need to do some work to adjust the travelled offsets depending on whether the first or second item is loaded/unloaded.


varianta-2-1.fsm (228.6 KiB)
· 10
5 |100000

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

Stefan99 avatar image Stefan99 commented ·

And to place the object on the platen, do I need to add the On Draw trigger? Or should it be modified elsewhere?1724833377719.png

0 Likes 0 ·
Felix Möhlmann avatar image Felix Möhlmann Stefan99 commented ·

I'd use the On Draw trigger as shown in the previous post, yes. Just modify it to loop over all subnodes in a for-loop and place them according to their rank.

0 Likes 0 ·
Stefan99 avatar image Stefan99 Felix Möhlmann commented ·

1724834993341.png

I tried this and it doesn't work and I get the error exception: FlexScript exception: invalid index at MODEL:/BasicTE1>variables/ondrawtrigger at line 0.


And this is the old code 1724835111635.png



0 Likes 0 ·
1724834993341.png (52.2 KiB)
1724835111635.png (64.8 KiB)
Show more comments