It’s very common to have Python code that needs to integrate with SysML, UAF, or UML simulations. However, CATIA Magic currently supports only older Python versions.
Take a look at this new step-by-step tutorial showing how to run SysML simulations with the latest Python using the standard FMI interface — including a method to call external Python scripts from CATIA Magic via Groovy.
How to video:
Instructions:
- Install python FMU generator
pip install pythonFMU
- build FMU from python
python -m pythonfmu build -f multiplier_fmu_tcp_params.py -d build
Solution Archtiecture:
All files (python, FMU, mdzip) - unzip: