Floor Storage Height limit

Floor Storage Height limit

andrea_f
Not applicable
20 Views
2 Replies
Message 1 of 3

Floor Storage Height limit

andrea_f
Not applicable

[ FlexSim 19.1.2 ]

Hello everyone i have a floor storage with pallet stacked vertically through a flexscript code. I would like to set a maximum z height in order to stack them with this maximum capacity. Do you know how can i develop that with the floor storage?

Thank you in advance

0 Likes
Accepted solutions (1)
21 Views
2 Replies
Replies (2)
Message 2 of 3

joerg_vogel_HsH
Mentor
Mentor
Andrea, this is not a FlexSim Warehouse. It is just a rack object. Warehouse is a feature of FlexSim 19.2.4 and newer versions.
0 Likes
Message 3 of 3

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

Because a rack object doesn't belong to a warehouse feature in your version, you must build a test logic on your own to compare the space above the last item on the last pallet in a rack cell to its maximum allowed height of this cell. I answered in a previous question all needed commands to get the reference to this product. Now you can get his topmost location value by evaluating the object method getLocation and project this 3D Vector into the model space. The z- component of this result vector is the height in a cell to ground level.

direct casting of a treenode to object:

.as(Object)

documented in:

https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html

method for a topmost vector in container space of the product

https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/Object.html#M...

project this vector from container space into model space.

https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Vec3.html#Met...

Maybe you have to cast container object into a treenode. The reference of model ismodel()

get z component

https://docs.flexsim.com/en/19.1/Reference/CodingInFlexSim/FlexScriptAPIReference/Data/Vec3.html#Pro...