question

Andrea F avatar image
0 Likes"
Andrea F asked Joerg Vogel answered

Floor Storage Height limit

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

FlexSim 19.1.2
warehousepalletfloor storagestacking itempacking
· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
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 0 ·

1 Answer

·
Joerg Vogel avatar image
1 Like"
Joerg Vogel answered

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#Method-getLocation

project this vector from container space into model space.

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

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#Property-z

5 |100000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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