Prerequisites
Before using the SpeosNX API, ensure you have:- Siemens NX installed with Speos integration
- Python environment configured
- SPEOS_NX_DIR environment variable set correctly
Basic setup
To use the SpeosNX API in your Python scripts, follow these steps:1. Import required modules
2. Add SpeosNX to Python path
3. Initialize the session
Core concepts
Session
TheSession object is the entry point to the SpeosNX API. It provides access to all parts and features.
Parts and features
- Part: Represents a Speos For NX part
- FeatureCollection: Contains all Speos features in a part
- Feature: Base class for all Speos simulation features
Builders
Builders are used to create and configure Speos objects:- SourceBuilder: Create light sources
- SensorBuilder: Create sensors
- SimulationBuilder: Create and configure simulations
Next steps
- User Guide - Detailed user guide
- Usage Examples - See practical code examples
- Classes - Browse the complete API reference