ProcessFlow: How can I separate an Array from an Token

ProcessFlow: How can I separate an Array from an Token

david_draganov
Not applicable
8 Views
3 Replies
Message 1 of 4

ProcessFlow: How can I separate an Array from an Token

david_draganov
Not applicable

[ FlexSim 22.2.0 ]

I'm creating a simulation of a warehouse. I need to separate a label array (the location of the product on the 3D model) from 1 token to multiple tokens with only the location for then the task executer pick it up and move that objet.


1671146816294.png


0 Likes
Accepted solutions (1)
9 Views
3 Replies
Replies (3)
Message 2 of 4

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

There are many examples of this here on this forum - students are encouraged to research before asking fresh questions here.

You simply use a RunSubflow activity using the array length as the number of tokens to create and labelling each with the product using the 'creationRank' as the index of your product array.

0 Likes
Message 3 of 4

joerg_vogel_HsH
Mentor
Mentor
In a Case where you don’t need an unchanged array anymore, you can do this by array methods returning a single array element from end or beginning of your array, while this element get removed from the array.

Please look for it in API reference manual about Array datatypes.

0 Likes
Message 4 of 4

andrew_o2
Not applicable

Hi @David Draganov, was Jason Lightfoot's answer helpful? If so, please click the "Accept" button at the bottom of their answer. Or if you still have questions, add a comment and we'll continue the conversation.

If we haven't heard back from you within 3 business days we'll auto-accept an answer, but you can always unaccept and comment back to reopen your question.

0 Likes