What a Persistent ID is
A Persistent ID (PID) is a UUID attached to an element of a STEP file so that the same element can be recognised in the next export of the model and by downstream consumers such as CAM, CMM and QIF tools. The rules are the CAx-IF Recommended Practice Persistent IDs for Design Iteration and Downstream Exchange v1.8 (March 2026): product and product version, every semantic PMI, every face and edge (never a vertex) get a UUID; the UUID goes into the Data Section as V5_UUID_ATTRIBUTE or V4_UUID_ATTRIBUTE with a UUID_SET_ITEM; V5 is preferred because it repeats, V4 is legal but must be labelled V4; and the header must carry CAx-IF Rec.Pracs.---Persistent IDs---1.8---2026-02-27.
NX 2606 writes none of this by itself. It does keep a native UUID on every PMI object (Annotations.Pmi.UniversallyUniqueId) and exports a face's or edge's name into the STEP entity name. The tool uses both: PMI UUIDs are read from NX, faces and edges are given a V5 UUID as their NX name, and the STEP file is completed with the UUID records after export.
The interface inside NX
A custom directory adds a PIDs menu to NX with five commands. Each one is an NX Open journal; the same code runs headless with run_journal.exe.






Proof that the IDs are in the file



How it was validated
"Valid" has four layers. The first three were run here; the fourth needs a second implementation.
| Layer | What it checks | Instrument | Result |
|---|---|---|---|
| 1. Part 21 syntax | The file parses and every reference resolves | NX's own importer; the tool's parser | pass 0 errors, 0 warnings on every output |
| 2. Schema | Every record against the AP242 edition 4 longform EXPRESS schema the rec prac names: entity exists, exact attribute count including the supertype chain, typed wrappers defined | validate_pids schema checks over the public ISO schema (2,407 entities) | pass 58,763 records on the rib (with the hole groups); also passes the file the CAx-IF validator accepted in April |
| 3. Recommended practice | Header string, V4/V5 subtypes only, UUID format and version nibble, references exist, allowed target types, no duplicates, no vertices, no id_attribute, coverage of product, PMI, faces, edges | validate_pids, ten checks, each with a corruption test that makes it fail | pass 10 of 10 on all three test parts, and again with the 84 hole groups (no face or edge carries two UUIDs) |
| 4. Interoperability | A second implementation imports the file, keeps the UUIDs and recognises the same entities on the next iteration (the CAx-IF round-robin) | An outside consumer that implements edition 4 PIDs | Not run: NX 2606's importer is not such a consumer. Producing side proven (next section). |
Known wart: NX declares AP242 edition 2 in the header while the UUID records are edition 4 entities. The CAx-IF gate accepted exactly this from NX in April 2026. WHERE rules and attribute types are not evaluated by the schema checks.
rib.validate.json (the 13 checks)
loading…
NX's own import log for the STEP file (round trip)
loading…
Design iteration on the rib
The rec prac's design-iteration case: edit the model, export again, and the untouched entities must keep their UUIDs. One copy of the rib, four exports, diffed with iteration_diff:
| Edit between exports | Persisted | Deleted | New | Retargeted | Hole groups persisted |
|---|---|---|---|---|---|
| Expression p557, 12.7 → 14.0 mm | 3389 / 3389 | 0 | 0 | 0 | 84 / 84 |
| Expressions p556 and p558, 6.35 → 7.0 mm (the diameter of two fastener holes; 48 points moved) | 3389 / 3389 | 0 | 0 | 0 | 84 / 84 |
| No change, straight re-export | 3389 / 3389 | 0 | 0 | 0 | 84 / 84 |
| 20 × 20 × 80 mm block cut through the web | 3389 / 3389 | 0 | 19 (6 faces, 12 edges, 1 split) | 0 | 84 / 84 |
The web faces whose loops changed kept their UUIDs; only the new cut faces and edges got new ones. The hole column was run afterwards over the same five exports with hole grouping on: 84 of 84 hole UUIDs persisted on every step, including the two holes whose diameter the second edit changed. Faces deleted is not covered: suppressing any of this rib's extrudes makes NX roll the update back.
rib.iteration_diff_run5.json (the block cut)
loading…
Logical holes
A through-hole in NX is one 360° cylindrical face and two closed edges, and each already has its own UUID. An inspection or fastener tool wants to address the hole as one thing, so the file also carries, per hole, the rec prac's Appendix B "Logical Hole" structure with one V5 UUID on the group. The face and edges keep their own UUIDs; nothing carries two.
#57858=COMPOSITE_GROUP_SHAPE_ASPECT('Logical hole','',#54450,.F.);
#57859=SHAPE_ASPECT('Cylinder','',#54450,.F.);
#57860=SHAPE_ASPECT_RELATIONSHIP('','',#57858,#57859);
#57861=GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#57859,#1486,#17605); <- the ADVANCED_FACE (cylinder r = 31.75 mm)
#57862=SHAPE_ASPECT('Edge 1','',#54450,.F.);
#57863=SHAPE_ASPECT_RELATIONSHIP('','',#57858,#57862);
#57864=GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#57862,#1486,#9795); <- EDGE_CURVE, closed CIRCLE
#57865=SHAPE_ASPECT('Edge 2','',#54450,.F.);
#57866=SHAPE_ASPECT_RELATIONSHIP('','',#57858,#57865);
#57867=GEOMETRIC_ITEM_SPECIFIC_USAGE('','',#57865,#1486,#9766); <- EDGE_CURVE, closed CIRCLE
#57868=V5_UUID_ATTRIBUTE('c1cf86cf-cc54-581c-85ed-649b55df7918',UUID_SET_ITEM((#57858)));
| On the rib | Count | How it was established |
|---|---|---|
| Logical holes grouped | 84 of 1,024 faces | append_pids --report; a hole is a cylindrical or conical face bounded by exactly two loops, each one closed edge |
| Fastener holes, r = 3.175 mm | 80 | 40 through the flat top and bottom flanges, bounded by two circles; 40 through the curved leading- and trailing-edge walls (b-spline surfaces after the DXF recovery), bounded by two closed b-splines |
| Lightening holes | 4 | r = 15.875, 25.4, 31.75 and 50.8 mm, two circles each |
| Bend radii, r = 3.175 mm, not grouped | 165 | Cylinders too, but bounded by arcs and lines; the unit test carries one as its control |
| Concave | 84 of 84 | Every grouped face has same_sense .F., so material is outside the cylinder |
| Hole UUIDs persisted across the four edits | 84 / 84 each step | The same five exports as the iteration table; two holes changed diameter (3.175 → 3.5 mm) and kept their UUID |
| NX 2606 re-import | 0 errors, 0 warnings | Its entity summary counts 109 composite_group_shape_aspect and 288 geometric_item_specific_usage; it keeps neither, as with the UUID records |
| Control | byte-identical | With --no-holes the output is the file shipped here before hole grouping existed (SHA-256 663d1bd4…), so the feature is purely additive |
The hole UUID is V5 of the cylinder face's own persistent ID, not of its descriptive NX name: that name carries coordinates and would mint a new hole UUID whenever the hole moved. Not grouped yet: counterbores, cone-ended blind holes, split half-cylinders. Detection is from the STEP geometry, not from NX Hole features, so it also works on this imported, feature-less rib.
rib.holes.iteration_diff_p556.json (two hole diameters changed, 84 / 84 kept)
loading…
rib.holes.iteration_diff_blockcut.json (block cut, 84 / 84 kept, 19 new topology)
loading…
NX's import log for the file with hole groups
loading…
Hole PMI and characteristics
The rib came with no PMI on its fastener holes. add_hole_pmi puts a semantic PMI diameter dimension with a tolerance on every through-hole from NX Open, so each hole carries a native NX PMI UUID; NX Inspector then makes each one a product characteristic with its own UUID. The STEP file carries the dimension as DIMENSIONAL_SIZE('diameter') + PLUS_MINUS_TOLERANCE with a V4_UUID_ATTRIBUTE; the characteristics go out as a Bill of Characteristics JSON in NX Inspector's own schema.
| On the rib | Result | How it was established |
|---|---|---|
| Holes found from NX geometry | 84 | Cylindrical face with two closed edges; the same 84 the STEP-side grouper finds, two independent instruments |
| Diameter dimensions added | 80 added, 4 adopted, 0 failed | Ø6.35 ±0.05 mm on the cylinder face, named HOLE-001 … HOLE-080; the four lightening holes already had one on an edge and were adopted, not dimensioned twice. 25 s in a batch NX session |
| PMI in the STEP file | 146, all with V4 UUIDs | 66 original + 80 hole dimensions; each new callout is 'Radial Dimension (n) "HOLE-nnn"', its DIMENSIONAL_SIZE applies to a SHAPE_ASPECT whose usage is the hole's ADVANCED_FACE |
| Hole → PMI join | 84 of 84 | Each logical-hole record now lists the dimension on it (the four lightening holes list four: their diameter plus three location dimensions) |
| UUID records, validator | 3,553 records, 13 of 13 pass | 2 product, 146 PMI, 3,321 topology, 84 holes; edition 4 schema checks included |
| NX 2606 re-import | 0 errors, 0 warnings | Its entity summary counts the 146 PMI; the UUID records are dropped as before |
| Design iteration | 146 / 146 PMI kept, 84 / 84 holes kept | Two hole diameters changed 6.35 → 7.0 mm (expressions p556, p558; dimensions HOLE-034 and HOLE-049 now read 7.00) and the part re-exported: 0 new, 0 deleted, 0 retargeted in every layer. Also run after a Save As under another file name: the same result once the V5 root was moved to the part's own UUID (the file name is not identity) |
| NX Inspector characteristics | 84 | Inspector.Manager → CreateCharacteristicBuilder → SelectPmis → Commit: one ProductCharacteristic per hole PMI, each with its own UUID, referencing the dimension, its instance on the hole face (80) or edge (4). Saved as the characteristic part …_chr.chr |
| Bill of Characteristics JSON | 84 records, schema pass | Written by boc_export in NX Inspector's schema 2412.0.1 and validated against the schema files NX ships; NX's own sample passes the same checker, a record with its nominal removed fails |
One hole, end to end (STEP excerpt)
DRAUGHTING_CALLOUT('Radial Dimension (768) "HOLE-001"', ...) the callout NX wrote for the new PMI
DIMENSIONAL_SIZE(#sa,'diameter') its semantic size, on shape aspect #sa
PLUS_MINUS_TOLERANCE(#range,#size) ±0.05
GEOMETRIC_ITEM_SPECIFIC_USAGE('','PMI',#sa,#brep,#face) #face = the hole's ADVANCED_FACE
V4_UUID_ATTRIBUTE('202f973e-6018-494f-b376-117f54ec590d',UUID_SET_ITEM((#size))) the PMI's NX UUID
COMPOSITE_GROUP_SHAPE_ASPECT('Logical hole','',#pds,.F.) -> #face and its two edges
V5_UUID_ATTRIBUTE('<hole uuid>',UUID_SET_ITEM((#group))) the hole's UUID; the PID map lists the PMI beside itThe V5 root for version, body and hole UUIDs is now the part's own UUID: a first run had put the file name in it, and a Save As changed 86 UUIDs on untouched geometry. The NX captures above were taken afterwards, once the machine was free.
Seen in NX 2606 (captures of the NX window and images written by NX's own image export, taken after the part was re-opened from disk):

V4_UUID_ATTRIBUTE), Ø6.35, +0.05/−0.05 and the face PID it sits on. Behind it, the rib in the trimetric view.




How these were made, because it took a while: a PMI is displayed only in the model views it was created in, so a batch-created dimension is invisible in the Front view until Dimension.SetViews adds it; the journal nxpid/gui_capture.py does that, orients the view, exports the images and writes the listing. It runs from Tools → Play (Journal Manager); the File → Execute → "Designcenter Open" dialog refuses Python. The GUI itself was driven with nxgui/tools/nxinput.ps1, which sends input only after proving NX owns the foreground and captures only the NX window rectangle.
rib.hole_pmi.nx_run.json (what add_hole_pmi did in NX)
loading…
rib.hole_pmi.iteration_diff.json (two diameters changed, everything kept)
loading…
rib.hole_pmi.boc.json (Bill of Characteristics, 84 records)
loading…
rib.hole_pmi.characteristics.json (NX Inspector objects as read back)
loading…
Model views that match the drawing
The part was recovered from a 2D drawing with five views. After recovery, all 146 PMI sat in one model view. pmi_to_model_views reads the drawing's views and rebuilds them in the model: one model view per flat drawing view, named as on the drawing and oriented by third-angle projection from the main view, with every PMI moved into the view it was dimensioned in. NX writes each model view into the STEP file as a saved view holding exactly its own PMI.
| Model view | Seen from | PMI | What it holds |
|---|---|---|---|
| Front view | +Z, the plan | 55 | The 26 plan dimensions and 29 plan notes |
| Top view | +Y | 45 | 2.60 and .80, the Top-view summary note, 42 upper-flange hole dimensions |
| Bottom view | −Y | 35 | 2.60 and the 34 bottom-flange hole dimensions |
| Section view A-A | +X | 8 | The radius, .16 and .06, the section summary note, 4 end-cap hole dimensions |
| Notes and tables | +Z | 3 | The general note and the two point tables |
How each PMI found its view: a PMI named after a drawing dimension goes to the drawing view nearest that dimension on the sheet; a note that starts with a view's name goes to that view; a hole dimension goes to the view that shows its flange, or to the view looking down its axis when the flange view would see it edge-on. Nothing was left unplaced. Annotation planes were then turned to face their view where that is safe: 42 planes in total across the run (the bottom-flange and end-cap hole dimensions, two mirrored Top-view dimensions, two summary notes that were edge-on and so invisible). Three section dimensions were left as the recovery made them: their planes sit a quarter turn from the view and one reads upside-down, but turning those planes would change what they measure.
The pictures below are drawn from the STEP file alone by a small second reader (render_views): the part's edges as a wireframe, and only the PMI that each saved view lists, through that view's camera. No hidden-line removal.







| Check | Result | Instrument |
|---|---|---|
| Every PMI in exactly one model view | 146 of 146, 0 unplaced | Read back from NX after the move (GetViews on each PMI) |
| Model view orientations | 5 of 5 equal the planned matrices | Read back from NX after returning to the original view |
| STEP saved views hold the same PMI | 146 of 146 | step_views --expect: each view's DRAUGHTING_MODEL against NX's read-back. Control: the same check on the export made before the move fails on all 146 |
| STEP camera orientations | 5 of 5 | Each CAMERA_MODEL_D3 against the model view; the reading convention verified on NX's six canned views |
| UUIDs through the move and the turn | 146 / 146 PMI, 84 / 84 holes, 3321 / 3321 topology, 2 / 2 product | iteration_diff against the export made before |
| Validator, NX re-import | 13 of 13 pass, 0 errors 0 warnings | validate_pids, NX 2606 importer |
Not done: a real section cut in the Section view; UUIDs on the saved views themselves; NX screenshots of the new views (you were at the machine, so the GUI was not driven). The Isometric drawing view carries no PMI and NX already has an Isometric view.
rib.model_views.json (the plan, NX's read-back, every PMI's view and why)
loading…
rib.step_views.json (the saved views as the STEP file holds them, and the check)
loading…
rib.views.iteration_diff.json (UUIDs before and after the move)
loading…
Importing the STEP file back with its PIDs
NX's AP242 importer drops the UUID records silently but keeps face and edge names and the PMI callout names. import_with_pids imports the file and re-attaches every UUID it can join: PMI by callout name, faces and edges by name, product and version on the part, as a PID_UUID attribute. On the rib: 66 of 66 PMI, 1,024 of 1,024 faces, 2,296 of 2,296 edges, product and version. The native PMI UUID is read-only through NXOpen, so on the imported side it lives as an attribute.
rib.import_pids.json
loading…
Downloads
The rib as exported from the PIDs menu in NX on 23 September 2026; the STEP file and map were regenerated the same day from that export with hole grouping on (the part itself is unchanged by it). Verify what you downloaded against the SHA-256.
| File | Size | What it is | SHA-256 |
|---|---|---|---|
| TSTDrawing1234_with_pids.prt | 5.3 MB | NX 2606 part with Persistent IDs stored in it: 66 PMI UUIDs, every face and edge named with its V5 UUID. Export it again and the same UUIDs come out. | f6d7e23065b2ccfdbfe95753f80e5924c91114eb30687da339216041714f67e7 |
| TSTDrawing1234_with_pids.stp | 16.5 MB | The STEP AP242 file exported from that part by the PIDs menu, with logical holes appended on 23 September: 3,473 UUID_ATTRIBUTE records (84 of them on hole groups), validator 13/13. | b687f4f23a89b2b30cb495467c7f874672ff0e5de09c2aebaf719ae2231199b9 |
| TSTDrawing1234_with_pids.pidmap.txt | 1.1 MB | The PID map: every UUID, the STEP entity it identifies and the NX object it came from. (Regenerated once more after the V5 root moved to the part UUID.) | ed5fc566e94d7c92aa424b00c2ee01b4e1dd47741d4682363c230c720fef788a |
| TSTDrawing1234_hole_pmi.prt | 5.5 MB | The rib with a Ø6.35 ±0.05 PMI diameter dimension on every fastener hole (HOLE-001 … HOLE-080), 146 PMI in all, every face and edge named with its PID. PMI now sorted into five drawing-aligned model views. | 5af58e419d20ef3b6976f591ecbd57b9a2bb8c54c6b9556b2f7709a2b11d27b6 |
| TSTDrawing1234_hole_pmi.chr | 75 KB | Its NX Inspector characteristic part: 84 product characteristics, one per hole dimension. | f6c93073b843d1d5aaf0e2d1d0faa2f232b2c51451ef4b33e41620446435dc73 |
| TSTDrawing1234_hole_pmi.stp | 20.9 MB | Its STEP AP242 export: 3,553 UUID records (146 PMI, 84 hole groups), validator 13/13. PMI now sorted into five drawing-aligned model views. | c463ccba0443b968096d2bc948996c7225f3acb9af927e823c9a649c1867a8ea |
| TSTDrawing1234_hole_pmi.pidmap.txt | 1.2 MB | Its PID map; each logical hole line ends with the PMI on it. PMI now sorted into five drawing-aligned model views. | 3fdb2bd4e91f1f9758fa89ae979fb6cad1d8944715e119215cd053ac855d4344 |
| rib.hole_pmi.boc.json | 207 KB | The Bill of Characteristics JSON (NX Inspector schema 2412.0.1), 84 records joined to PMI UUID, hole UUID and face PID. | 68568541f204adb0494ddb7aff8ee8334959c3f5f94be3fbb01fd9929a457d6e |
Documentation
The two documents that ship with the tool, verbatim. Also: the proof page (searchable HTML), the PID map for the rib (every UUID, its STEP entity and its NX object).
README.md
loading…
SKILL.md (the recipe as recorded for future sessions)
loading…
Get it
Repository: github.com/chrisdamonmartini/nx-step-pid (private).
git clone https://github.com/chrisdamonmartini/nx-step-pid cd nx-step-pid python -m nxpid.fetch_schema # AP242 ed4 schema for the validator, once powershell nxgui\Install-NxPidGui.ps1 # PIDs menu appears in NX on next start # headless, one journal, whole run: "C:\Program Files\Siemens\Designcenter2606\NXBIN\run_journal.exe" nxpid\journal_all_in_one.py -args part.prt out_dir
Tested on NX 2606.5001 (Designcenter) with three parts: a Siemens/NG PID test part (39 PMI), a Creo file imported into NX (no PMI), and a DXF-recovered rib (66 PMI, 1,024 faces, 2,296 edges). 54 tests, each validator check driven to fail by its own corruption.