question

Murphy avatar image
0 Likes"
Murphy asked Murphy commented

item absolute location

How can I get absolute location when item in rack. Thanks!

FlexSim 24.0.1
item location
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

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Murphy commented

Then you project the coordinates inside of a rack into the model.

Location in rack:

https://docs.flexsim.com/en/24.2/Reference/CodingInFlexSim/FlexScriptAPIReference/Warehousing/Storage.Slot.Item.html#Property-location

Projection into model()

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

project expects from into parameter being treenodes.You must cast them as treenode.

· 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.

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

The Object class inherits from treenode - you can use Objects in the project method.

0 Likes 0 ·
Murphy avatar image Murphy commented ·

ok, thanks I will try it!

0 Likes 0 ·