Skip to main content
This section provides information on how to get started with the SpeosNX Python API.

Prerequisites

Before using the SpeosNX API, ensure you have:
  1. Siemens NX installed with Speos integration
  2. Python environment configured
  3. 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

The Session 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