question

Sebastien avatar image
0 Likes"
Sebastien asked Joshua S answered

Command to move flowitem to sink at a specific time

Hello !

At the end of the day when the production is over, some flowitem stays in my Combiners which is normal. So I'd like to move them to the sink when the machine goes to its "schedule down" state. I was looking in my time tables for changing the down function with a custom code but could not find a way to access the flowitems that are actually in the machine that is being taken down. with a command line. I looked in the FlexSim API and the class Object but did not find anything.

Is there any way to access a flowitem inside an object ? There could be more than one, depending of the number of flowitem that the Combiner must join.

If I can access the flowitem in the machine, I plan on moving it with moveobect().

Best regards,

FlexSim 18.2.2
flowitemobjectmoveobject
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

Joshua S avatar image
0 Likes"
Joshua S answered

Any item inside another is a subnode. So you can use

Object.subnodes

to access all the items, then use

Object.subnodes[i]

to access a specific item.

5 |100000

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