Can anyone help me with flexSimPy?

Can anyone help me with flexSimPy?

martin_k5
Not applicable
104 Views
5 Replies
Message 1 of 6

Can anyone help me with flexSimPy?

martin_k5
Not applicable

[ FlexSim 22.2.4 ]

Hi,

I tried to follow this thread:Future Python and FlexSim integration - FlexSim Community implementing the Python connection to be able to call Python script from FlexSim, but I am getting the "No module named xxx" error.

What is wrong please?


Thank you.

Martin

PyMod.py

test.fsm

0 Likes
Accepted solutions (1)
105 Views
5 Replies
Replies (5)
Message 2 of 6

kavika_faleumu
Autodesk
Autodesk
Accepted solution

Hey @Martin K5, have you taken a look at this post "How to use Flexscript (Python) to create the data into global table"? In it I explain how to connect your Python script to Flexscript so you can execute it in a model.

0 Likes
Message 3 of 6

martin_k5
Not applicable
Hi, yes I have. I have the same settings, but it does not work and I am not able to find the problem, that is why I asked for a help.


Thank you.

0 Likes
Message 4 of 6

martin_k5
Not applicable

I tried to rebuild the model as attached and still getting errors.


Would you be able to help please?


Thank you.

test.fsmTestPy.py


0 Likes
Message 5 of 6

kavika_faleumu
Autodesk
Autodesk

The external linking names are case-sensitive. You currently have

1681400417377.png

but your python script is lowercase, so it should be

1681400438674.png

It works fine after that change.

0 Likes
Message 6 of 6

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Martin K5, 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 unaccept and comment back to reopen your question.

0 Likes