Passing Array values from flexsim into Python

Passing Array values from flexsim into Python

jpokornyAXJ2L
Contributor Contributor
595 Views
2 Replies
Message 1 of 3

Passing Array values from flexsim into Python

jpokornyAXJ2L
Contributor
Contributor

[ FlexSim 24.2.2 ]

Array.ppythontest.fsmyI am starting to learn how to link python scripts into flexsim. I am trying to pass two array values from flexsim into python to return an array value. I can not seem to get it to work, not sure if the problem is with the flexsim config or the python code

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

FelixMoehlmann
Mentor
Mentor
Accepted solution

It works if the np.array is converted back into a list before returning it.1737703682260.png

0 Likes
Message 3 of 3

Jeanette_Fullmer
Community Manager
Community Manager

Hi @JP117, was Felix Möhlmann'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