NX Automations · NX Open Python + Check-Mate test + PIDs menu

Characteristics on Operational Features

Download 1.0.1

Turns every PMI on a part into requirements with acceptance limits on the operational features they govern, and a Check-Mate test fails any feature or PMI value that has no limits.

Verification passing on NX v2606.0.0.5001 · 2026-10-29 · repo 40a0160

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

It starts from the operational features: every face and edge of the part as a feature a shop makes and inspects, grouped into holes, slots, pockets and bosses, each with a persistent ID.

1. Read the PMI. NX Open's Annotations API gives every PMI's kind, its NX UUID, the faces and edges it is associated with, and its values: a dimension's size and tolerance (with the tolerance type, which decides how the two numbers are read), a feature control frame's characteristic, tolerance, zone, material modifier and datums, a datum's letter, a roughness symbol's text, a note's lines. NX's own semantic view of each PMI is read as a second opinion.

2. One requirement, one feature. Each PMI becomes characteristics: a requirement with acceptance limits on one feature. "4X" on one hole is completed with the holes alike to it (same kind, diameter and parent), but only when exactly four are there; otherwise the count is reported, never guessed. "INDIVIDUALLY" gives one per face.

3. Features that are relationships. A distance between two walls, a coaxiality to a datum bore and a common tolerance zone make a composite feature of the features they relate, and the characteristic sits on it. A datum on two opposite faces is their mid-plane; a datum on a cone with a basic diameter or height is the circle there.

4. Unless otherwise specified. A general note's rules go on every feature they govern that has no control of its own:

notegovernsskips
BREAK SHARP EDGES 0.1 - 0.3every convex sharp edgeedges with a requirement of their own
BREAK ALL EDGESevery convex edge, sharp or obtusethe same
SURFACE ROUGHNESS Ra 3.2every surfacesurfaces with their own roughness
PROFILE OF ALL SURFACES 0.5 A B Cevery surfacesurfaces with their own profile
LINEAR TOLERANCE +/-0.2every dimensiondimensions with their own tolerance

5. IDs and revisions. A characteristic's UUID is a V5 UUID of its PMI's UUID and its feature's, so a revision that keeps both keeps it, and two revisions compare characteristic by characteristic: added, removed, changed limits.

6. Definition of done. A Check-Mate test fails any operational feature with no characteristic that has limits (edges formed by their faces' cuts, concave or tangential, are exempt by default) and any PMI value with no limits (basic and reference dimensions are exempt by design; a 4X that no longer matches, a PMI on nothing and a datum letter used twice fail too). A composite's characteristic counts for the features it is on: a coaxiality completes the bore, not the datum bore it is measured from. Each failing face, edge or PMI is logged as a Check-Mate object.

On the demo part (17 faces, 36 edges, 14 PMI): 82 characteristics, 17 from explicit PMI and 65 from the general note, on 50 features, with 3 composite features and a mid-plane datum.

1.0.1 carries the PIDs menu's file-box fix from STEP Persistent IDs 1.0.3: Cancel in the native file box (Validate a STEP file, Import STEP with PIDs) now does nothing, where 1.0.0 went ahead with whatever name came back. The download also holds every script the shared PIDs menu names, so no button points at a missing file. The verification was run again at the release commit.