question

Murphy avatar image
0 Likes"
Murphy asked Jason Lightfoot commented

how to make one goods use one storage space?

1670575511032.png

I try to find how to make one storage space have only one goods, but I can't find any links can provide to me. As shown in the figure below.1670575666819.png

Choose One
rank
1670575511032.png (1.1 MiB)
1670575666819.png (25.5 KiB)
· 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.

Murphy avatar image Murphy commented ·
about Flexsim 2022.2 version
0 Likes 0 ·

1 Answer

·
Felix Möhlmann avatar image
0 Likes"
Felix Möhlmann answered Jason Lightfoot commented

Add the condition that the slot must be empty to the rack's Slot Assignment Strategy.

1670581204402.png


1670581204402.png (13.6 KiB)
· 4
5 |100000

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

Murphy avatar image Murphy commented ·

Thanks professor, I also want to know how to design to make item in the middle location at the rack. like the graph. thanks you

1670899076777.png

0 Likes 0 ·
1670899076777.png (29.4 KiB)
Felix Möhlmann avatar image Felix Möhlmann Murphy commented ·

Either set the location of the item in the rack's "On Slot Entry" trigger.

Vec3 centerLoc = slot.getLocation(0.5, 0.5, 0.5);
item.setLocation(centerLoc.x, centerLoc.y, centerLoc.z, 0.5, 0.5, 0.5);

Or set the slot padding so that the item is placed in the center.

1670915508669.png

The first option has the advantage that it will work for differently sized objects.

0 Likes 0 ·
1670915508669.png (19.3 KiB)
Murphy avatar image Murphy Felix Möhlmann commented ·
Thanks Felix
0 Likes 0 ·
Show more comments

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.