question

Aldo G11 avatar image
0 Likes"
Aldo G11 asked Felix Möhlmann commented

Change Position of Created Item

agv-trailer-load-and-unload_1.fsmHello everyone, I'm using a model based on the one posted here (https://answers.flexsim.com/questions/70730/how-can-i-simulate-a-tractor-trailer-in-flexsim.html) which I'm using now; so the question is: how can I change it in a different position for a different shape? I'm using a different shape but appears on the Task Executer like this:

1658758608140.png

and I want the edited shape to appear on the Task Executer look like this:

1658758732088.png

In other words; can the position of the axis "y" and "z" be changed from the already existing Process Flow and make every object created from the Process Flow stick to the modified "y" and "z" coordinates?

I looked onto the Custom Code and find out that the marked number changes the position only on the "x" axis, so maybe there's a part of the code that changes "yz"?

1658771372573.png

Hope you see my question, and thank you in advance...cheers!

FlexSim 22.0.5
agvcodeaxis change
· 2
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

In the attached model the custom shape objects aren't attached as trailers but moved into the totes that are serving as trailers.

There are multiple ways to adjust their location (easiest to most complex - in my opinion):

1) Use a 'Change Visual' activity in the process flow to adjust the location after the items are moved into the totes.

1658824129032.png1658824145162.pngagv-trailer-load-and-unload-1_1.fsm

2) Edit the packing method of the tote in the FlowItem Bin, so any entering objects are automatically placed correctly. Essentially using 'object.setLocation()' to do the same adjustment as the activity above.

1658824254102.png

3) Edit the shape factors so that the visual location of the custom shape relative to its bounding box is chosen in a way that neither of the two options above is necessary.

1658824221582.png


· 2
5 |100000

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