NX Automations · NX Open Python + Check-Mate test + PIDs menu
Characteristics on Operational Features
Download 1.0.1Turns 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
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.1 · chrisdamonmartini/nx-step-pid @ 40a0160
- Run
- 2026-10-29T02:51:08Z
- Checks
- 20 of 20 hold
- Overall
- All checks hold
| Result | Check |
|---|---|
| Holds | The demo part in NX is the one that was drawn, with its 14 PMINX holds 17 faces and 36 edges (expected 17, 36), planar 11 and cylindrical 6 (11, 6); 14 PMI, each with an NX UUID: True; kind and associated-object count as built for 14 of 14; every face identified by its geometry: 17 distinct roles |
| Holds | Every PMI is read from NX with the values it was built with, and NX's own semantic view agrees14 of 14 PMI read back with every value they were built with (tolerance types BilateralOneLine, NotSet, UnilateralAbove, BilateralTwoLines; FCF tolerance, zone, modifier, datums; datum letters; Ra; note lines; 4X and INDIVIDUALLY); NX's own semantic view (PmiJson) agrees on kind, characteristic, associated-object count and appended text for 14 of 14 |
| Holds | Rev A: the 82 characteristics worked out by hand82 characteristics (expected 82): {'explicit': 17, 'general note': 65} (17 explicit, 65 from the general note), by kind coaxiality 1, diameter 6, distance 2, edge break 33, flatness 2, position 4, profile of a surface 17, roughness Ra 17; 82 with limits; 3 composite, 1 constructed features; issues: 0 |
| Holds | Each explicit PMI gives its characteristics, with the limits worked by hand, on the right features10 of 10 PMI give the characteristics, limits and features worked by hand (diameter 8 7.95-8.05 on the four 8 mm holes, 12 12.000-12.018, 20 19.95-20.10, slot 15.9-16.1 and length 119.8-120.2 on composites, coaxiality 0.05 on bore + counterbore, flatness on both top faces, profile on the floor, Ra 0.8 on the bore); position carries zone diameter, MMC, A|B|C: True; the 120's limits come from the general note's tolerance line: True |
| Holds | '4X' and 'INDIVIDUALLY' become one characteristic per feature'4X' on a dimension NX associates with 1 face: 1 characteristic on it (['hole1']) and 3 on the holes alike to it (same kind, diameter and parent); 'INDIVIDUALLY' on one flatness frame on two faces: 2 characteristics on 2 separate features |
| Holds | The general (UOS) note goes on every feature it governs that has no control of its own'BREAK SHARP EDGES 0.1 - 0.3' on 33 edges: the 33 convex sharp edges NX's geometry gives, none of the 3 concave; 'Ra 3.2' on 16 surfaces, all but ['OF-001'] (bore, which has its own Ra 0.8); 'PROFILE 0.5 A B C' on 16, all but ['OF-021'] (the slot floor, which has its own profile) |
| Holds | A distance-between and a coaxiality make composite features; the datum on the slot walls is their mid-planecomposites: [('Coaxiality', ('bore', 'cbore')), ('Distance between', ('left', 'right')), ('Distance between', ('wall_left', 'wall_right'))]; datum B is a constructed Mid-plane of ['wall_left', 'wall_right'] at x = 60.0, width 16.0; datum A on bottom, C on bore |
| Holds | Each characteristic's UUID is a V5 of its PMI's UUID and its feature's, and comes out the same againall 82 characteristic UUIDs recomputed here as V5 of (PMI UUID, feature UUID, kind, frame) match, and all are distinct; composite UUIDs from their members' UUIDs: 3 of 3; the part opened again and analysed in NX gives the same 82 UUIDs: True |
| Holds | The tree (JSON and CSV): Part -> parent / composite -> feature -> characteristicthe CSV holds the tree Part -> parent -> feature -> characteristic: 157 rows ({'Part': 1, 'POF': 13, 'OF': 53, 'Datum': 3, 'Characteristic': 82, 'Outline': 1, 'Composite': 3, 'Constructed': 1}); 82 characteristic rows, one per characteristic by UUID, each with its PMI UUID, 0 not under its own feature |
| Holds | Definition of done on rev A passes: every feature and every value has limitsrev A: PASS; features 50 pass, 0 fail, 3 exempt (the 3 concave edges); PMI values 13 pass of 13 (expected 50 / 0 / 3, 13) |
| Holds | In NX: every face and edge carries its characteristics and verdict as attributes; one Undo takes them outread back from NX on rev A: 53 of 53 faces and edges carry OPF_DOD (50 PASS, 3 EXEMPT, 0 FAIL); the faces' OPF_CHAR_COUNT add up to 52 (the file says 52); after one Undo 0 carry it; on rev B 2 edges read FAIL |
| Holds | Definition of done on rev B fails on exactly the two edges no rule governsrev B (19 faces, 41 edges, 89 characteristics): definition of done FAIL on 2 features: OF-038 Edge, obtuse (Chamfer 1), OF-037 Edge, obtuse (Chamfer 1); both are the chamfer's obtuse edges by NX's geometry: True; PMI values failing: 0 |
| Holds | Two revisions diffed at characteristic level: a tolerance change, an added hole, a chamferA -> B: 8 added, 1 removed, 4 changed, 77 unchanged (expected 8, 1, 4, 77); changed: the four 4X diameters to 7.97-8.03: True; added on ['chamfer', 'chamfer', 'edge of bottom+chamfer', 'edge of bottom+hole6mm', 'edge of chamfer+top_left', 'edge of hole6mm+top_left', 'hole6mm', 'hole6mm']; removed: edge break on OF-045 |
| Holds | A local '2X DEBURR' note on the two edges completes rev CB -> C: 2 added (edge break 0 to 0.2 on OF-037, edge break 0 to 0.2 on OF-038), 0 removed, 0 changed; on the two features rev B failed; definition of done now PASS |
| Holds | Negative control: a dimension left with no tolerance fails the PMI-value rulethe general note edited in NX without its tolerance line keeps its UUID: True; A -> D: 1 changed (LENGTH_120: {'lower_limit': [119.8, None], 'upper_limit': [120.2, None]}), 0 added, 0 removed; definition of done FAIL on values ['LENGTH_120'] |
| Holds | Negative control: a '4X' that no longer matches the part fails, and is not guesseda fifth 8 mm hole: DIA_8_4X now gives 1 characteristic (on the associated hole only, nothing guessed); issue: says 4X but governs 1 feature(s) (5 alike on the part); POS_4X keeps 4; 83 characteristics (expected 83); definition of done fails on values ['DIA_8_4X'] |
| Holds | Check-Mate runs the test: pass on A and C, fail on B, D and E with the failing objects loggedCheck-Mate's own XML logs, the test run by Check-Mate in a batch NX session: A: pass (0 objects); B: fail (2 objects); C: pass (0 objects); D: fail (1 objects); E: fail (1 objects) (expected A pass, B fail 2, C pass, D fail 1, E fail 1); on B the two logged objects are the chamfer edges, by the PIDs NX writes for them |
| Holds | Negative controls on the files: a removed characteristic, exemptions off and 4X completion off all failan edge's only characteristic removed: FAIL (as intended); formed edges not exempt: FAIL (as intended); 4X completion off: FAIL (as intended); recomputed here from NX's extract and PMI read: the same 82 characteristics in the same order: True |
| Holds | A Bill of Characteristics in NX Inspector's schema, valid against the schema NX ships13 Bill of Characteristics records with 82 instances (one per characteristic); the 4X diameter is one record with instances ['8.1', '8.2', '8.3', '8.4']; NX Inspector's schema (2412.0.1): pass (4 dangling $refs in the shipped schema aliased, as boc_export reports) |
| Holds | The STEP export with PIDs and features still passes on every revisionthe PID + features pipeline with --characteristics on every revision: A ok, B ok, C ok, D ok, E ok (STEP export, PID and feature checks pass); rev A's file read back by NX with 0 errors |