In this video and post, we demonstrate a simple yet powerful method for integrating AI into SysML simulations when external logic needs to be part of the process. This includes working with random data, external datasets, or component imitations.
This amazing approach enables you to create custom components with defined inputs and outputs, facilitating early simulation activities. These components can seamlessly integrate into your system architecture for more robust and dynamic simulations. Additionally, the method showcases how to execute external scripts, such as Python, along with any required libraries.
Check demo, sample and come back with application use cases and library samples!
Demo:
https://youtu.be/f8zomEu5PC8
Steps to run solution:
- Download Catia Magic project file and python code.
- Place them in required location, by default. C:\\tmp
Create Open AI API key at:
https://platform.openai.com/settings/organization/api-keys
note: you will need paid account to create API key.
- Add OpenAI API key into python file
5. Adjust model if your python script is in different location then C:\\tmp
Files:
Catia Magic project file
Zipped python file, please unzip:
