question

David Draganov avatar image
0 Likes"
David Draganov asked Andrew O commented

ProcessFlow: How can I separate an Array from an Token

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


FlexSim 22.2.0
process flow
1671146816294.png (24.1 KiB)
· 1
5 |100000

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

Andrew O avatar image Andrew O commented ·

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

1 Answer

·
Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Joerg Vogel commented

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.

· 1
5 |100000

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

Joerg Vogel avatar image Joerg Vogel commented ·
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 0 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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