question

SamYates avatar image
0 Likes"
SamYates asked Jason Lightfoot edited

How to load and reference container objects in task executer?

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


FlexSim 24.0.2
processflowtask executertotescontainers
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

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot edited

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[n] - 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
5 |100000

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