question

Łukasz E avatar image
0 Likes"
Łukasz E asked Łukasz E commented

Set pallet type on a combiner based on a box type

Hi,

I would like to set the same Type on a pallet based on a box Type from Input2.

Model below:

set-pallet-item-based-on-box-type-rr.fsm

What is the best solution?

combiner itemtype
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

·
Allister Wilson avatar image
0 Likes"
Allister Wilson answered Łukasz E commented

You can use the first property of a treenode (an Object is also a treenode) to reference its first child node.

Given the box is packed onto the pallet, it becomes a child of the pallet, so you can reference its type label as

referenceToPalletObject.first.Type

So you could do what you want like this, for example :

Manual page for first : https://docs.flexsim.com/en/20.0/Reference/CodingInFlexSim/FlexScriptAPIReference/Tree/treenode.html#Property-first


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

Łukasz E avatar image Łukasz E commented ·

Thank you!

0 Likes 0 ·

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.