An intelligent embedded agent that automates the generation of Siemens Plant Simulation models using LLMs.
This tool bridges the gap between natural language and discrete event simulation. By simply describing your layout, the AI agent handles object creation and routing within your model.
Before you start, ensure your environment meets these requirements:
Important
- Python 3.10+ (System-level installation)
- Tecnomatix Plant Simulation (Professional License required)
- OpenRouter API Key for LLM access
- Dependencies: Run
pip install -r requirements.txt
- Prepare Model: Open a new blank
.Models.Modelpart. - AI Agent setup:
- Drag and drop the
Agent.pslibfile into your model. - Create a empty Model under Agent folder
- Drag AI_Agent dialog, OpenAI python model, FileSelect Python model, AI_ErrorHandler Method, AIMethod Method and FileList into the empty model
- Then invoke the dialog by 'Show Dialog' popup menu
- Drag and drop the
- Configure: Open the
AI_Agentdialog and paste your OpenRouter API Key. - Select Model: Choose your preferred AI model (e.g., GPT-4 or Claude 3) from the dropdown.
- Prompt & Run: Enter your simulation requirements and click Run.
Prompt: "Create two sources, two stations, one assembly station, and a drain. Connect them in sequence at .Models.Model."
Prompt: "Replicate the assembly line in the attached image, but add one extra pre-process station to each branch."
| Input Reference | Resulting Animation |
|---|---|
factory.jpg |
![]() |
Prompt: "Generate the assembly line architecture based on the uploaded XML configuration."
If the GIFs above do not load, you can find high-resolution MP4 recordings in the Example Folder.


