NX Automations · NX journal + PIDs menu
STEP Persistent IDs
Download 1.0.3Exports 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
| Result | Check |
|---|---|
| Holds | The 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) |
| Holds | Every 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 |
| Holds | Every 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 |
| Holds | The 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 |
| Holds | PMI UUIDs in the file are the ones NX holds19 of 19 PMI UUIDs read from NX appear as V4_UUID_ATTRIBUTE in the file |
| Holds | The export passes the recommended-practice and schema validator13 of 13 validator checks pass, including the three against the AP242 edition 4 schema |
| Holds | Negative 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) |
| Holds | Each 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) |
| Holds | PMI 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 |
| Holds | The 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 |
| Holds | Negative 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) |
| Holds | Sorting PMI into views changes no ID96 of 96 UUIDs identical before and after the sort; 0 new, 0 deleted, 0 moved to another entity |
| Holds | Design 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 |
| Holds | Design 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 |
| Holds | NX 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 |
| Holds | Faces 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 |
| Holds | Negative 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) |
| Holds | A 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 |
| Holds | Negative 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) |
| Holds | Cancel 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 |
| Holds | Negative 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) |