How to load and reference container objects in task executer?

How to load and reference container objects in task executer?

SamYates
Not applicable
74 Views
1 Reply
Message 1 of 2

How to load and reference container objects in task executer?

SamYates
Not applicable

[ FlexSim 24.0.2 ]

I have created a model and attached it. I have created a task executer that has 16 container objects in it and is connected to an operator. In this model I am attempting to pick from different SKUs (Rack locations) and load each container with a given number (can vary by container) of SKUs. I have currently run into an issue in which only 4 of the containers are loaded and with different SKUs. How can I change this model to accomplish my goal?

Some more specific questions are listed below:

- How can you reference a specific list of containers that need to be filled for a given SKU (box)?

- How can you reference all of the boxes in one container?

- How can you reference a container (totes) capacity?

Thank you.SmartCartOfficialTemplateV2.fsm


0 Likes
Accepted solutions (1)
75 Views
1 Reply
Reply (1)
Message 2 of 2

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

You model stops since idx from the subflow is 5 and you're trying to find an item whose Type is 5 (none exists).

You can refer to objects within objects using

subnodes - where n refers to the rank.

eg you can run this in a script window:

Object op=Model.find("Operator1");
return op.subnodes[3];   //returns the third smartContainer tthe operator is holding

If you want to get all the objects as an array then it's:

op.subnodes.toArray()

to get the boxes in the 3rd Container it would be

op.subnodes[3].subnodes.toArray()

If you have a label on the container called 'capacity' then it's

op.subnodes[3].capacity