question

Ryusuke T avatar image
0 Likes"
Ryusuke T asked Jason Lightfoot commented

Creating / editing a process flow using a script

Hello.

I'm investigating if I can create or edit a process flow using a script. Is it possible with FlexScript or C ++?

FlexSim 21.0.10
processflowscript
· 5
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 ·

I don’t think it is a wise procedure to create a logic while a model is running, because there are dependencies that must be resolved before model start! Mainly the model gets compiled before run start. Any dynamical exchange may lead to unpredictable errors.

0 Likes 0 ·
Ryusuke T avatar image Ryusuke T Joerg Vogel commented ·

@Joerg Vogel ,

Thank you for your reply.

I'm not thinking about creating it while the model is running.

The current assumption is whether the process flow can be created automatically to some extent from the keyword information imported before running the model.

Is this possible?

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Ryusuke T commented ·
It is possbile using the function_s commands of the process flow objects, but as Phil says - it's not supported - any future changes to the module might break anything you develop.
0 Likes 0 ·
Show more comments
Kavika F avatar image Kavika F ♦ commented ·

Hi @Ryusuke T, was Phil BoBo'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

·
Phil BoBo avatar image
1 Like"
Phil BoBo answered Ryusuke T commented

We do not currently support auto-building Process Flows. You can use Process Flow or code to auto-build a model, but not a Process Flow. This was a design choice we made when developing Process Flow.

5 |100000

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

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.