run python code in Flexsim

run python code in Flexsim

qoie200011
Not applicable
407 Views
2 Replies
Message 1 of 3

run python code in Flexsim

qoie200011
Not applicable

[ FlexSim 21.2.4 ]

Hello,

I want to execute functions from a python file in Flexsim, and the Flexsim version I'm using is 21.2.3. But this version can only use Flexscript or read DLL. I wonder is there any way to do the above requirement.

Any help would be appreciated!

0 Likes
Accepted solutions (1)
408 Views
2 Replies
Replies (2)
Message 2 of 3

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @qoie200011, you would have to upgrade your version to at least 22.1 to use the Python connector. It wasn't implemented until then.

If you had a server, you could try using the Http API to send requests to a server that you have, have the server process the requests to run a python script or function, then send the results back through the server to the model.

0 Likes
Message 3 of 3

julie_weller
Not applicable

Hi @qoie200011, was Kavika F'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 comment back to reopen your question.

0 Likes