question

Bryan Suharik avatar image
0 Likes"
Bryan Suharik asked Bryan Suharik commented

Dynamically attach objects to an Instanced Process Flow?

I have an instance Process Flow that I'm using to control the logic of some queues in my model. I also dynamically create more of these queues based off user input in a GUI.

Is there some way to make sure when I dynamically create new queues they are also attached to my process flow?

FlexSim 16.2.2
fixed resource process flowinstanced process flowattach object
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

·
Matthew Gillespie avatar image
0 Likes"
Matthew Gillespie answered Bryan Suharik commented

The easiest way is just to use the createcopy command. If you have one object that is already attached to the process flow you can just use the createcopy command to duplicate that object and the duplicate will also be attached.

Otherwise you can use this function to attach any object to the specified process flow:

function_s(processFlow, "attachObject", object);

Where processFlow is a reference to the process flow object you want to attach to and object is the object you want to attach.

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

Bryan Suharik avatar image Bryan Suharik commented ·

Perfect, Thank you!

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.