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

What it does, step by step. Click to zoom.

NX 2606 writes STEP AP242 edition 2 and no UUID records, so the export is done in two halves.

1. The IDs live in the NX part. Every PMI object in NX already has a UUID of its own (NX assigns one when the PMI is created). Faces and edges have none, so the tool makes one for each and stores it as the NX object name of that face or edge. Because the IDs are saved in the part, they are still there after the next edit.

2. NX exports, then the records are appended. NX's own STEP translator writes the file. The tool then matches each NX object to its STEP entity and appends one UUID record per identified thing.

thingwhere the ID comes fromSTEP record
PMI (dimension, note)NX's own PMI UUIDV4_UUID_ATTRIBUTE
face, edge, bodymade once, stored as the NX object nameV5_UUID_ATTRIBUTE
hole (cylinder + two edges)derived from the cylinder face's IDV5_UUID_ATTRIBUTE on a 'Logical hole' group
product and versionthe part's own NX identifierV5_UUID_ATTRIBUTE

3. Views. A small description of the drawing (its views, and where each dimension sits on the sheet) decides which model view each PMI belongs to. The tool creates one model view per drawing view, oriented the same way, and moves each PMI into exactly one. NX then writes each model view as a STEP saved view.

4. Validation. Thirteen checks run on every export: three against the AP242 edition 4 schema, ten against the recommended practice (every UUID well-formed and of the right version, no entity identified twice, every record pointing at something that exists).

On the demo bracket (20 faces, 42 edges, 12 through-holes, 19 PMI) that is 2 + 19 + 63 + 12 = 96 records. After changing eight hole diameters from 6.5 to 7.0, all 96 are identical. After adding a ninth hole, all 96 persist and exactly 5 new ones appear (1 face, 2 edges, 1 hole group, 1 dimension).

1.0.1 fixes face and edge IDs on revolved cuts. NX names the faces of a revolve with a bare 'FACE 1', 'FACE 2' and no point, so in 1.0.0 the faces of different revolves came out with the same name and were given the same ID, and the STEP appender, which tracked faces by that name, left some of them unmatched. Each face and edge now gets a name no other one in the part has; a part saved by 1.0.0 with a shared ID is repaired (the first face keeps it, the others get new ones) and saved; and the appender tracks every face and edge by its own NX identifier. The verification adds a block with three revolved holes, and runs it through the 1.0.0 code as a negative control that must fail. Since 1.0.0 the PIDs menu also carries two Operational Features buttons (Find Operational Features, Export STEP with PIDs and features); the download now holds the scripts and modules they run, so no button in the menu points at a missing file.

1.0.2 fixes PMI dimensions that NX links to their callout only through a placeholder association. On a 50 x 30 x 10 test block NX 2606 wrote the one linear dimension as a DIMENSIONAL_LOCATION with no related shape aspect, tied to its callout only by a DRAUGHTING_MODEL_ITEM_ASSOCIATION_WITH_PLACEHOLDER, so 1.0.0 and 1.0.1 found nothing to give its ID to and the export stopped at the append step. The appender and the validator now follow that link when the plain association gives nothing, and only then, so every dimension that resolved before keeps exactly the targets it had. The verification runs NX's own export of that block through the 1.0.2 code and, as a negative control that must fail, through the 1.0.1 code. The PIDs menu also gained a Find Characteristics button; the download carries its script and the modules it runs.

1.0.3 makes Cancel in the menu's file box do nothing. Validate a STEP file and Import STEP with PIDs open NX's native file box, whose Python binding answers (filter, file name, response) with OK = 2 and Cancel = 3. 1.0.0 to 1.0.2 read the first two items as (response, name), so OK worked but the response was never looked at, and Cancel went ahead with whatever name came back (a folder gave 'Could not read'). The name is now the string without a wildcard, it must be an existing file, and a 3 is Cancel. The verification runs the menu's file-box code against the binding's answers, and runs the 1.0.2 code on the same answers as a negative control that must fail. The download also carries the scripts behind the menu's Export QIF 3.0 and CMM and CAM Plans buttons, so no button points at a missing file.