NX Automations · NX journal + PIDs menu

STEP Persistent IDs

Download 1.0.3

Exports a part to STEP AP242 with a persistent UUID on every PMI, face, edge and hole, so the same thing keeps the same ID from one design iteration to the next.

Verification passing on NX v2606.0.0.5001 · 2026-10-29 · repo 54079e3

Expected values worked by hand before the run, results read back from NX, and deliberate failures that must be caught. Run by the session that built it, on the repo commit below with a clean tree; imported here unchanged.

NX
v2606.0.0.5001
Version
1.0.3 · chrisdamonmartini/nx-step-pid @ 54079e3
Run
2026-10-29T02:13:35Z
Checks
21 of 21 hold
Overall
All checks hold
ResultCheck
HoldsThe demo bracket in NX is the one that was drawnNX holds 20 faces, 42 edges, 12 cylindrical faces; dimensions read 240, 112, 70, 8 (expected 20, 42, 12; 240, 112, 70, 8)
HoldsEvery through-hole gets one diameter dimension, with its own NX UUID12 through-holes found; 12 diameter dimensions added, 0 failed; read back as 8 at 6.5, 3 at 8, 1 at 30
HoldsEvery face, edge and PMI has a persistent ID stored in the part20 of 20 faces and 42 of 42 edges carry their ID as the NX object name; 19 of 19 PMI have an NX UUID
HoldsThe STEP file carries one UUID record per identified thing96 UUID records in the STEP file: 2 product, 19 PMI, 63 faces/edges/body, 12 logical holes (expected 2 + 19 + 63 + 12 = 96); nothing unmatched
HoldsPMI UUIDs in the file are the ones NX holds19 of 19 PMI UUIDs read from NX appear as V4_UUID_ATTRIBUTE in the file
HoldsThe export passes the recommended-practice and schema validator13 of 13 validator checks pass, including the three against the AP242 edition 4 schema
HoldsNegative control: a corrupted file fails the validatora V5 record given a version-4 UUID: validator says fail (caught by the intended check); a second UUID on an already identified entity: validator says fail (caught by the intended check)
HoldsEach hole is one addressable group: cylinder + two edges, linked to its dimension12 logical-hole groups, 12 with exactly a cylinder and two edges, 12 joined to the diameter dimension on them (expected 12, 12, 12)
HoldsPMI is sorted into the drawing's views, each PMI in exactly oneread back from NX: Front view 12, Notes and tables 1, Top view 6 (expected Front view 12, Top view 6, Notes and tables 1); every named dimension and note in its hand-assigned view; 0 PMI in more or fewer than one view; view orientations as planned: True
HoldsThe STEP file's saved views hold the same PMI as NX's model views19 of 19 PMI sit in the same saved view in the STEP file as in NX; 3 of 3 camera orientations equal the model views
HoldsNegative control: the view check fails on the unsorted exportthe same check on the export made BEFORE sorting reports fail, 19 of 19 PMI in the wrong view (expected: fail, 19 of 19)
HoldsSorting PMI into views changes no ID96 of 96 UUIDs identical before and after the sort; 0 new, 0 deleted, 0 moved to another entity
HoldsDesign iteration 1: eight hole diameters change, every ID persistshole_d 6.5 to 7.0: 8 hole dimensions read 7.0 in NX and 8 carry nominal 7.0 in the new STEP (6.5 in the old one) under the same UUIDs; 96 of 96 UUIDs persisted, 0 new, 0 deleted
HoldsDesign iteration 2: a hole is added, only the new things get new IDsa ninth plate hole added: 96 of 96 existing UUIDs persisted; new UUIDs: 3 topology (1 face, 2 edges), 1 logical hole, 1 PMI; 0 deleted, 0 moved to another entity; NX holds 21 faces and 44 edges
HoldsNX reads every exported file backNX 2606 re-imported 4 of 4 exports with 0 errors. NX's importer does not keep the UUID records: its console reports them as an unknown type and skips them
HoldsFaces of a revolved cut each get their own PIDthree revolved holes, 6 of 12 faces with a bare NX journal identifier: 12 distinct PIDs on 12 faces, 21 on 21 edges; 34 face/edge/body records in the STEP file (expected 12 + 21 + 1), nothing unmatched
HoldsNegative control: the 1.0.0 code fails the revolved-cut checkthe same part through the 1.0.0 code (commit 019d3e4): 9 distinct PIDs on 12 faces, 9 things unmatched in the STEP file (expected: fewer PIDs than faces)
HoldsA dimension linked only through the placeholder association gets its PIDNX 2606's own export of a test block, its one linear dimension linked to its callout only through DRAUGHTING_MODEL_ITEM_ASSOCIATION_WITH_PLACEHOLDER: 1 dimension given a PID on {'Linear Dimension (2)': [['DIMENSIONAL_LOCATION']]}, 0 PMI unmatched
HoldsNegative control: the 1.0.1 code fails the placeholder-dimension checkthe same file through the 1.0.1 code (commit b8d29c9): 1 PMI unmatched (Linear Dimension: no semantic entity resolved from the callout), so the pipeline stops at append (expected: the dimension unmatched)
HoldsCancel in the menu's file box (Validate, Import) does nothingValidate / Import file box, answers shaped (filter, name, response) with UF_UI_OK=2, UF_UI_CANCEL=3: OK gives the file True, Cancel gives None, a folder gives None
HoldsNegative control: the 1.0.2 file box goes ahead on Cancelthe 1.0.2 _pidgui.py (commit 902ed09) on the same answers: OK gives the file True, Cancel gives 'part.stp' (expected: the file, so Cancel went ahead)

In the NX window

The demo bracket in NX, Front view: the plate dimensions and the nine plate-hole diameters, each in the model view the drawing put it in.
Top view: the flange dimensions and the three flange-hole diameters.
The PIDs menu the install adds to NX.
Export STEP with PIDs on the demo bracket: 96 records (19 PMI, 63 topology, 12 holes, 2 product), validator pass.
Show PIDs: every PMI of the part with its persistent ID, in NX's Information window.