Persistent IDs for NX STEP export

An NX part becomes a STEP AP242 file that carries a CAx-IF Persistent ID on every PMI, face, edge and on the product. This page shows the interface inside NX that does it, the proof that the IDs are in the file, every layer of validation that was run, and the documentation. Everything here was produced on NX 2606 on 22 September 2026.

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.

NX Menu with the PIDs submenu: Export STEP with PIDs, Show PIDs, Tag PIDs as attributes, Validate a STEP file, Import STEP with PIDs
Menu → PIDs in NX 2606 with the rib part open. Five commands: Export STEP with PIDs, Show PIDs, Tag PIDs as attributes, Validate a STEP file, Import STEP with PIDs.
Information window listing every PMI with its UUID
Show PIDs: the Information window lists every PMI of the open part with its index, type, text and NX UUID. NX's own Menu → Information → Object prints the same value for one PMI at a time.
Export STEP with PIDs result box: 3389 UUID records, validator pass
Export STEP with PIDs on the rib: 3,389 UUID records (66 PMI, 3,321 topology, 2 product) at the time of this capture, validator pass, each step reported. The current build adds 84 logical-hole groups, 3,473 records. The part is saved with its PIDs so the next export repeats them.
NX file box for Validate a STEP file
Validate a STEP file opens NX's native file box.
Validate STEP result: PASS, 13 checks
The validation result: 13 checks pass, details in the Information window and a JSON report beside the file.
NX with the STEP file imported: MBD Navigator lists the dimensions by callout name
Import: the STEP file opened in NX 2606. The MBD Navigator lists the imported dimensions by the same callout names the UUID records key on. NX's importer drops the UUID records themselves; the Import STEP with PIDs command re-attaches them (see below).

Proof that the IDs are in the file

Table: NX PMI read-back next to the STEP record carrying each UUID, all match
Left: what NX reports through NXOpen for each PMI (index, type, text, UUID). Right: the record in the STEP file that carries that UUID and the semantic entity it points at. 66 of 66 match. The drawing is the rib the file was exported from.
Notepad showing the appended V4_UUID_ATTRIBUTE records
The STEP file in Notepad at the line where the appended block starts: product, version and PMI records.
Notepad showing V5_UUID_ATTRIBUTE records for faces and edges at the end of the file
The end of the same file: V5 records for faces and edges, 16 MB, 218,441 lines.

How it was validated

"Valid" has four layers. The first three were run here; the fourth needs a second implementation.

LayerWhat it checksInstrumentResult
1. Part 21 syntaxThe file parses and every reference resolvesNX's own importer; the tool's parserpass 0 errors, 0 warnings on every output
2. SchemaEvery record against the AP242 edition 4 longform EXPRESS schema the rec prac names: entity exists, exact attribute count including the supertype chain, typed wrappers definedvalidate_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 practiceHeader 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, edgesvalidate_pids, ten checks, each with a corruption test that makes it failpass 10 of 10 on all three test parts, and again with the 84 hole groups (no face or edge carries two UUIDs)
4. InteroperabilityA 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 PIDsNot 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 exportsPersistedDeletedNewRetargetedHole groups persisted
Expression p557, 12.7 → 14.0 mm3389 / 338900084 / 84
Expressions p556 and p558, 6.35 → 7.0 mm (the diameter of two fastener holes; 48 points moved)3389 / 338900084 / 84
No change, straight re-export3389 / 338900084 / 84
20 × 20 × 80 mm block cut through the web3389 / 3389019 (6 faces, 12 edges, 1 split)084 / 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 ribCountHow it was established
Logical holes grouped84 of 1,024 facesappend_pids --report; a hole is a cylindrical or conical face bounded by exactly two loops, each one closed edge
Fastener holes, r = 3.175 mm8040 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 holes4r = 15.875, 25.4, 31.75 and 50.8 mm, two circles each
Bend radii, r = 3.175 mm, not grouped165Cylinders too, but bounded by arcs and lines; the unit test carries one as its control
Concave84 of 84Every grouped face has same_sense .F., so material is outside the cylinder
Hole UUIDs persisted across the four edits84 / 84 each stepThe same five exports as the iteration table; two holes changed diameter (3.175 → 3.5 mm) and kept their UUID
NX 2606 re-import0 errors, 0 warningsIts entity summary counts 109 composite_group_shape_aspect and 288 geometric_item_specific_usage; it keeps neither, as with the UUID records
Controlbyte-identicalWith --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 ribResultHow it was established
Holes found from NX geometry84Cylindrical face with two closed edges; the same 84 the STEP-side grouper finds, two independent instruments
Diameter dimensions added80 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 file146, all with V4 UUIDs66 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 join84 of 84Each logical-hole record now lists the dimension on it (the four lightening holes list four: their diameter plus three location dimensions)
UUID records, validator3,553 records, 13 of 13 pass2 product, 146 PMI, 3,321 topology, 84 holes; edition 4 schema checks included
NX 2606 re-import0 errors, 0 warningsIts entity summary counts the 146 PMI; the UUID records are dropped as before
Design iteration146 / 146 PMI kept, 84 / 84 holes keptTwo 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 characteristics84Inspector.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 JSON84 records, schema passWritten 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 it

The 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):

NX Information window listing HOLE-001 to HOLE-020 with PMI index, NX UUID, value 6.35, tolerance and the face PID
The hole PMI as NX holds it. Information window from a journal run in the NX GUI: each HOLE-nnn dimension with its PMI index, NX PMI UUID (the value that goes out as the V4_UUID_ATTRIBUTE), Ø6.35, +0.05/−0.05 and the face PID it sits on. Behind it, the rib in the trimetric view.
NX Information window, second page, HOLE-041 to HOLE-080
The same listing, HOLE-041 to HOLE-080. 80 named dimensions, 84 diameter dimensions in all.
NX front view: six flange holes each with a Ø6,35 ±0,05 PMI dimension
Front view, zoomed on the flange. Each fastener hole carries its Ø6,35 ±0,05 dimension. The near and far flanges line up in this view, so two rows of callouts overlap; written by NX's image export.
One hole with its Ø6,35 and ±0,05 PMI text
One hole, closer: the diameter and the tolerance NX attached to the cylinder face.
Trimetric view of the rib with the small hole callouts along both flanges
Trimetric view: the 80 hole callouts run along both flanges, beside the drawing's original 66 PMI.
NX Menu open on the dimensioned rib, with the PIDs entry at the bottom
The dimensioned rib open in NX with the Menu showing the PIDs entry the tool adds.

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 viewSeen fromPMIWhat it holds
Front view+Z, the plan55The 26 plan dimensions and 29 plan notes
Top view+Y452.60 and .80, the Top-view summary note, 42 upper-flange hole dimensions
Bottom view−Y352.60 and the 34 bottom-flange hole dimensions
Section view A-A+X8The radius, .16 and .06, the section summary note, 4 end-cap hole dimensions
Notes and tables+Z3The 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.

Front view drawn from the STEP file: the plan of the rib with its 55 PMI
Front view, 55 PMI: the plan dimensions, as on the drawing's main view.
Top view detail: upper flange holes with diameter callouts
Top view, detail: upper-flange holes with their Ø6,35 ±0,05 dimensions.
Bottom view detail: bottom flange holes with diameter callouts
Bottom view, detail: the bottom-flange holes, reading upright after their planes were turned.
Top view, whole flange
Top view, whole: 45 PMI along the upper flange.
Bottom view, whole flange
Bottom view, whole: 35 PMI.
Section view A-A seen from +X with its dimensions
Section view A-A, 8 PMI. Seen from +X; this is an orientation, not a cut, so the whole part shows through.
Notes and tables view
Notes and tables: the general note and the two point tables.
CheckResultInstrument
Every PMI in exactly one model view146 of 146, 0 unplacedRead back from NX after the move (GetViews on each PMI)
Model view orientations5 of 5 equal the planned matricesRead back from NX after returning to the original view
STEP saved views hold the same PMI146 of 146step_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 orientations5 of 5Each CAMERA_MODEL_D3 against the model view; the reading convention verified on NX's six canned views
UUIDs through the move and the turn146 / 146 PMI, 84 / 84 holes, 3321 / 3321 topology, 2 / 2 productiteration_diff against the export made before
Validator, NX re-import13 of 13 pass, 0 errors 0 warningsvalidate_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.

FileSizeWhat it isSHA-256
TSTDrawing1234_with_pids.prt5.3 MBNX 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.stp16.5 MBThe 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.txt1.1 MBThe 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.prt5.5 MBThe 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.chr75 KBIts NX Inspector characteristic part: 84 product characteristics, one per hole dimension.f6c93073b843d1d5aaf0e2d1d0faa2f232b2c51451ef4b33e41620446435dc73
TSTDrawing1234_hole_pmi.stp20.9 MBIts 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.txt1.2 MBIts 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.json207 KBThe 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.