question

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

Creating / editing a process flow using a script -Continued

@Phil BoBo , Everyone,

I have previously made the following inquiries:

Creating / editing a process flow using a script - FlexSim Community


Since the best answer has been approved, I will post a new question.

Please tell me a little more.

Phil said, "You can code to auto-build a model." What kind of things can be automatically built using code?

I want to know how far auto build can be done.


And just in case, is it correct to recognize that Process flow cannot be created automatically even using C ++?


I would like to thank you in advance.

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

Jason Lightfoot avatar image
0 Likes"
Jason Lightfoot answered Jason Lightfoot commented

You can continue on that thread with these questions since it's the same question (title) - although you're asking for information about building a model while your question title is again asking about building a process flow - which Phil has already answered and I have commented on. There are many topics on this forum about autobuilding conveyors, AGV networks etc. along with the Fixed Resource, non-module-based objects. You're probably aware that for the basic objects the commands createinstance, createcopy, setLocation, contextdragconnection are going to be the main ones to use and then you'll be setting properties and possibly variables too.

In the post to which you linked I said it IS possible to create process flow activities in that post using function_s commands - you don't need C++ module. The problem might be maintaining that, if/when changes are made to the module. BUT - you can create your code in a way that it's easy to update some user commands should the process flow module change - you just need to be aware of that risk and restrict function_s calls to a few user commands.

· 3
5 |100000

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

Jason Lightfoot avatar image Jason Lightfoot ♦♦ commented ·

Here's a embryonic development of a library to build a flow from a Project definition (activities, times and predecessor processes). Load the library to auto install some user commands and an example table for the workflow. Then run BuildProcessFlow(<ProcessFlowName>,<DefinitionTable>), so for the example:

BuildProcessFlow("ProcessFlow","Workflow");

It will complain about some missing predecessor activities, but that's because it's dummy data.

From this you should be able to get an idea of what's involved.

v22.1_ProjectBuilder.fsl

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

@Jason Lightfoot


I'm sorry for the thread. I want to be careful from the next time.


And thank you for your answer.

I succeeded in creating a process flow with the createinstance command, but as you said, it seems dangerous.

Also, I would like to close this question as it is not supported.


Thank you for your support.

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦♦ Ryusuke T commented ·
It's not dangerous, you just need to be aware of the risks and the need to maintain you development when deciding to go down this path
0 Likes 0 ·