Siemens NX automation

NX Open development
and automation for Siemens NX

I use NX Open to write journals, dialogs and tools for Siemens NX so that repetitive clicks in design and drafting go away.

This page is for engineering managers, CAD administrators and key users who need an NX journal or NX macro written but have no NX Open developer in house. I am a mechanical engineer (BSc, ZHAW) with more than 10 years in PLM and CAx, and I write NX Open code in VB.NET, C# and Python. From 2019 to 2024 I was application manager for around 300 Teamcenter users and 100 NX licences at a 400-person aerospace company.

Alongside the programming I take care of the NX setup and the methodology the tools rely on. I work part time as an independent freelancer: mini-projects, work packages, reviews and regular support, on site in German-speaking Switzerland from Wetzikon near Zurich and remotely across the DACH region. My topics are design, drafting, routing, data management and automation. I do not offer NX CAM or CAE.

Journals and compiled tools

From a short journal for a single task to a compiled NX Open tool with its own dialog. I pick the simplest form that solves your problem.

Central company toolbar

A custom ribbon built with MenuScript and loaded through custom_dirs. Every user gets the tools from one central share, with no local installation.

Native NX and Teamcenter

I develop for native NX and for Teamcenter-managed NX. Where it helps, the tools read data from the Teamcenter structure.

NX journal or compiled NX Open tool

A journal is a source file that NX compiles and runs each time you play it. It is quick to change, easy to distribute and enough for many tasks. A compiled tool is a DLL, which suits larger projects with several modules and shared libraries.

I write in VB.NET, C# or Python, depending on who will maintain the code later. I build dialogs with Block UI Styler so that they look like standard NX dialogs, or with WinForms for tables and free layouts.

  • Ribbon, menus and roles with MenuScript, distributed from a central share through custom_dirs
  • Start scripts, for example a pre-check that an NX licence bundle is free

NX automation: examples from projects

I developed the following tools myself, most of them during the introduction of NX 2512 with Teamcenter at a Swiss manufacturer of unmanned helicopters (UAV). Within that project team, all NX Open tools and the NX setup with configuration, templates and manuals are my work.

  • Automatic balloons on drawings using the Teamcenter find number, with a collision-free layout
  • Weight report per body with material, density, volume and mass, to explain wrong part weights
  • Material library sync after a density change, with a dry-run mode before anything is written
  • Consumables such as fluids, adhesive or paint as a hidden mass at the centre of gravity
  • Measured hose or cable length written as the BOM quantity in metres, built as a prototype
  • Consistent colour coding by material class
  • Part clean-up and safe save before check-in: layers, fit and visibility

NX setup: customer defaults, templates and standards

A macro is of little use if every workstation is set up differently. I keep the configuration on a central share so that every workstation loads the same version.

  • Review and harmonise NX customer defaults
  • Seed parts and drawing templates, title block with attribute mapping
  • Layer standard, reuse library and material library

NX methodology and CAD data quality

Methodology defines how people model and draw: model structure, reference sets, layers, naming and drawing rules. Whether the rules are followed is best checked by a tool. DOCUFY CAx Quality Manager (DQM) is a CAD data quality checker integrated in Siemens NX. The native alternative in NX is Check-Mate.

  • Modelling and drawing guidelines that can be checked in daily work
  • My experience: maintaining the check profiles and setting up new checks in DOCUFY CAx Quality Manager (DQM)
  • Data quality rules before a migration and before check-in to Teamcenter

Sparring partner and second opinion on NX methodology

Are you planning new guidelines, new templates or a migration? As a sparring partner I challenge the concept before it is rolled out: modelling and drawing guidelines, customer defaults, templates, the migration approach and data quality rules. You learn which parts of the concept hold up, where I see risks and what could be done more simply. I take the same role for Teamcenter topics.

More on the sparring offer

Project examples

These examples come from my own work and are anonymised. A further example on weight and material is on the Teamcenter NX integration page.

Auto-ballooning NX drawings from Teamcenter find numbers

Swiss manufacturer of unmanned helicopters (UAV), NX 2512 with Teamcenter 2512

Situation
Balloons were placed by hand. The numbers on the drawing had to be checked manually against the bill of materials.
Approach
Developed in the project: an NX Open tool in VB.NET with a Block UI Styler dialog. It reads the find number of the first-level components from the Teamcenter structure, lays out the balloons without collisions, adds leaders and links the text to the attribute.
Result
A whole drawing sheet is ballooned in one step and can be reverted with a single undo. The balloon text follows the attribute from the structure.

More than 20 automation tools for design and PLM

Earlier permanent positions in PLM and CAx

Situation
Repetitive manual work in drafting, weight data and reporting tied up time in engineering.
Approach
In my earlier positions in PLM and CAx I built more than 20 automation tools with Visual Basic, NX Open and PowerShell.
Result
An NX drafting rivet tool saved 90 per cent of the time spent placing symbols. A weight and balance tool delivered reliable weight data within one year of its introduction.

Frequently asked questions about NX Open development

Do you also take on a complete NX introduction?

No. I do not lead an NX introduction. I take on individual packages from it: the NX setup, templates, a tool or a review of your methodology.

Do I need an NX Open licence?

Journals generally run with the standard NX licence. Compiled tools are signed with an NX Open author licence so that they run on workstations without that licence. Unsigned DLLs need the author licence on the workstation that runs them. Creating Block UI Styler dialogs requires a separate licence on the developer side. Licence bundles differ by contract and version, so I check this for your specific setup at the start.

What happens after an NX update?

From release 2606 Siemens ships the product under the name Designcenter (formerly NX). For your tools the version matters, not the name. After every version change journals and tools should be tested, and compiled tools rebuilt as well. The tools I built most recently run on NX 2512.

How does a project work?

You show me the current procedure in NX, ideally on a sample part. I write a short description of what the tool should do and deliver a first version for testing. After your feedback you receive the final version and a short user guide. Whether the source code is handed over is agreed in the contract.

Related services

Which clicks in NX do you repeat every day?

Describe the task to me. I will tell you whether a journal or an NX Open tool can automate it.

Discuss your task