question

Tuan avatar image
0 Likes"
Tuan asked Julie Weller commented

Convert the entire content of the model into python code

I have a model

I want to convert the entire content of the model into python code

how to implement??

Thanks!!

論文_autosave.fsm

FlexSim 20.0.10
python
論文-autosave.fsm (144.6 KiB)
· 4
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 ·
Why would you want to do this when Python can interface with/control FlexSim?
1 Like 1 ·
Tuan avatar image Tuan Jason Lightfoot ♦ commented ·

Because the connection process has been executing the experimenter, the halfway experimenter can no longer be executed, so I hope to execute the whole process in python and not connect flexsim

0 Likes 0 ·
Jason Lightfoot avatar image Jason Lightfoot ♦ Tuan commented ·
I don't know what the halfway experimenter is.
0 Likes 0 ·
Julie Weller avatar image Julie Weller commented ·

Hi @Tuan, 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
2 Likes"
Phil BoBo answered

A FlexSim model consists of a tree structure of data used to instantiate C++ classes that are defined in the FlexSim application. The logic for running a FlexSim model is a combination of C++ class library code and executed scripts stored on tree nodes, internal FlexScript or external code (C++, Python, C#, etc.).

You cannot convert a model into Python code. The FlexSim application is required to execute the logic for the objects and activities in the model. The discrete event processing logic for running a FlexSim model is contained in the FlexSim application. You must use the FlexSim application to run a FlexSim model.

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.