NX Open (API)
Siemens' multi-language API for NX customisation — C++, .NET, Java, Python.
🔗 Related Concepts
Deepen your understanding with these related topics:
Definition
NX Open provides full-feature API access: open files, create features, query geometry, customise UI, drive automation. Available in C++, .NET (C#, VB), Java, Python (via Open Python). Knowledge Fusion (KF) is a proprietary rule-based language for parametric design automation. Legacy UFUN (User Function) API is C-only and pre-dates NX Open.
Why it matters
Enterprises with deep NX customisation needs (CAD-PLM bridges, design rule enforcement, custom workbenches) build on NX Open. Python is the lowest-effort starting point; C++ and .NET deliver the deepest integration.
Technical Deep Dive & Core Mechanics
NX Open (API) benefits from the direct-modeling paradigm, which allows face-level manipulation without history-tree dependency. In direct mode, the user selects a face and applies a move, offset, or rotation. The kernel identifies all adjacent faces that must adjust to maintain B-rep validity—fillet faces resize, chamfer faces tilt, and adjacent planar faces extend or trim. This "face recognition" step is what makes direct editing intelligent rather than simple vertex dragging: the kernel infers geometric intent from the face types and adjacency relationships surrounding NX Open (API).
Synchronous or hybrid technology merges parametric and direct approaches: features created parametrically can be edited directly, and the system attempts to update the feature tree to reflect the direct edit. This back-propagation is not always possible—direct edits that contradict the original feature intent (such as moving a fillet face past its parent edge) cannot be expressed in the tree, requiring the system to either absorb the edit as a "move face" feature or flag a conflict. Understanding these hybrid limitations is essential for teams that mix parametric and direct workflows when working with NX Open (API).
Step-by-Step Professional Implementation
Deploying NX Open (API) in a mechanical or product-design production pipeline requires stable modeling discipline and data management:
- Set Up the Part/Assembly Template: Start from a company-standard template that pre-configures units, material libraries, default tolerances, and drawing sheet formats. Ensure the design intent is captured through a clean feature tree from the first sketch.
- Apply Parametric Constraints Methodically: When building NX Open (API), constrain sketches fully before extruding. Reference stable datum planes and origin geometry rather than edge references that may shift during design changes (avoiding dangling references).
- Enrich Metadata for Manufacturing: Populate custom properties (material, finish, heat treatment, part number) in the model's iProperties, custom attributes, or parameters. These feed directly into BOMs, PDM systems, and ERP integrations.
- Validate and Release: Run interference detection on assemblies, verify mass properties, and check for rebuild errors or suppressed features. Pass the model through your PDM/PLM check-in workflow with appropriate revision and lifecycle state updates.
Advanced Troubleshooting & Error Diagnostics
Resolution guide for common NX Open (API) issues in parametric modeling environments:
- Rebuild errors after feature reorder: Moving a feature earlier in the tree causes NX Open (API) to fail with "dangling reference" errors. Resolution: Before reordering, inspect the feature's parent-child relationships (right-click > Parent/Child). Ensure that all referenced geometry (faces, edges, planes) exists at the new position in the tree. Use origin planes and datum features as references instead of model faces to reduce reorder sensitivity.
- Fillet or chamfer failure on complex geometry: Applying a fillet to edges created by NX Open (API) produces "failed to create fillet" errors. Resolution: Check for tangent edges, very short edges, or edges where the fillet radius exceeds the available face width. Try reducing the radius or splitting the fillet into multiple smaller operations. Some kernels handle variable-radius fillets more robustly than constant-radius fillets for complex edge chains.
- Assembly interference not detected: Components overlap but the interference check reports no conflicts. Resolution: Verify that all components are fully resolved (not lightweight or suppressed). Check that the interference check settings include the correct component pairs. Surface bodies and reference geometry are typically excluded from interference checks—ensure the overlapping bodies are solid bodies.
Cross-Discipline Collaboration & Handoff
In multi-discipline product development, NX Open (API) must integrate smoothly with downstream manufacturing, simulation, and documentation workflows:
- Neutral Format Exchange: Export to STEP AP214/AP242 for maximum fidelity when sharing with partners who use different CAD platforms. Validate that feature topology, PMI (tolerances, datums, surface finish), and assembly structure survive the translation. Avoid relying on native formats for external suppliers.
- PDM/PLM Integration: Check in models through the product data management system with complete metadata (revision, lifecycle state, effectivity). Ensure that the BOM structure visible in the PLM matches the CAD assembly hierarchy, and that released parts are locked from unauthorized edits.
- Simulation and Manufacturing Handoff: Provide defeatured geometry to FEA analysts (remove cosmetic rounds, simplify internal cavities) and manufacturing-ready geometry to CAM programmers (with GD&T annotations). Coordinate on material specifications and tolerance stack-ups across the design-to-production chain.
Common pitfalls
- Mixing multiple NX Open languages on the same project — maintenance overhead.
- NX Open code without version pinning — every NX release requires testing.
- Knowledge Fusion when NX Open Python would be more maintainable.
Siemens NX Ecosystem Context
This concept is a core structural element of the Siemens NX drafting and engineering environment developed by Siemens Digital Industries Software. Siemens' high-end CAD/CAM/CAE platform — synchronous + parametric hybrid modelling, strong CAM, and Teamcenter PLM integration.
Relevant Siemens NX FAQs
❓ What is the difference between NX and UG?
Same product, different name. UG (UniGraphics) is the legacy name from 1973 until 2002, when Siemens (then EDS) rebranded to NX. Veteran users still say 'UG.' The .prt file format is continuous across the rename — UG files can open in modern NX.
❓ Can NX open SOLIDWORKS files?
❓ What is Knowledge Fusion?
NX's proprietary rule-based language for parametric design automation — pre-dates the modern NX Open API. KF rules capture engineering knowledge inside NX parts (e.g., 'if material is steel, use this fastener'). Modern projects often use NX Open Python or .NET instead, but KF still ships and is in active use in legacy enterprise customisations.
⚡ Concept Self-Test
Test your understanding of this concept to lock in your memory. Completing this quiz will automatically sync to your career learning progress.
🎓 Recommended Practice Lessons
Step-by-step practical exercises and certification-aligned paths chosen by our editors to master this concept:
NX WAVE Geometry Linker and Large Assemblies (Siemens Academy)
🌳 Semantic Crossroads & Navigation Pathways
Trunk-Branch-Leaf ModelExplore cross-referenced learning lanes. Connect this specific method back to macro CAD coordinate foundations, parent software environments, and sibling parameters in our shared taxonomy map.
Global Foundations
Core glossary, interactive graph, and domain-wide concept index.
Ecosystem Integration
Parent design environments and platforms implementing this method natively.
Active Context & Neighbors
Current active term and close sibling concepts:
Discover More
Practical Workflow Tips
Practical experience with NX Open (API) in production parametric CAD environments:
- Keep feature count low: Fewer features means faster rebuilds and fewer reference failures. Combine operations where possible—a single multi-contour extrude is more stable than several separate ones.
- Test with extreme parameters: After building a parametric model, drive dimensions to minimum and maximum values to verify the model rebuilds correctly across the full range.
- Simplify for downstream use: Before sharing NX Open (API) geometry with FEA or CAM teams, remove cosmetic features that add complexity without affecting the downstream task.
- Write meaningful PDM revision descriptions: "Updated per review" tells the next person nothing; "Increased wall thickness from 2mm to 3mm per stress analysis results (ECN-4521)" provides traceable context.