question

Rahul R avatar image
0 Likes"
Rahul R asked Jason Lightfoot edited

How do I find the storage object based on the slot?

Hi community,

I have 10-15 racks and I found slots using "find slot" activity and now I am trying to move created flow items into those slots. How do I refer to the specific storage item from the slot?

For example: slot label on the token says - /Rack_F_3>variables/bays/1/levels/1/slots/1

and I am trying to identify Rack_F_3 in this case

FlexSim 22.2.1
racksstorage systemfind slot
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

Long G avatar image
0 Likes"
Long G answered Jason Lightfoot edited

After you find a slot and store it in 'token.slot' ,using 'Assign Labels 'activity' and creat a new label with value'token.slot.as(Storage.Slot).storageObject',it will return that rack.



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

Rahul R avatar image Rahul R commented ·
Thank you!
0 Likes 0 ·
Long G avatar image Long G Rahul R commented ·

You're welcome! I just did a test,ownerobject(token.slot) seems to work a little more rapidly.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Long G commented ·

It will work more rapidly the second time you use it as ownerobject is cached. For nodes that move around you should not use this to find the parent object - in that case you use 'findownerobject()' - for slots it should be fine.

2 Likes 2 ·
Show more comments