NX Automations · NX Open Python + NX CAM + NX CMM Inspection + PIDs menu

CMM and CAM Plans per Feature

Download 1.0.1

Gives every operational feature a machining plan from NX CAM's own feature recognition and every characteristic a measurement plan from NX CMM Inspection's Link PMI, and writes them as a QIF 3.0 Plan.

Verification passing on NX 2606.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
2606.5001
Version
1.0.1 · chrisdamonmartini/nx-step-pid @ 40a0160
Run
2026-10-29T02:59:46Z
Checks
20 of 20 hold
Overall
All checks hold
ResultCheck
HoldsBoth revisions ran through NX with --plans2 of 2
HoldsLicences: NX CAM feature-based machining and CMM inspection programming are available hereread from NX's LicenseManager: {'cam_base': True, 'nx_fbm_execute': True, 'insp_programming': True, 'no_such_licence_feature': False}
HoldsRev A: NX CAM recognised the machining features and made their operations (read from the saved CAM part)13 machining features (expected 13): SLOT_RECTANGULAR 1, STEP1HOLE 4, STEP2HOLE 1, SURFACE_PLANAR_RECTANGULAR 7; 20 operations (expected 20), operations per feature by type {'SLOT_RECTANGULAR': [1], 'STEP1HOLE': [2], 'STEP2HOLE': [4], 'SURFACE_PLANAR_RECTANGULAR': [1]}; every machining feature's faces are faces of the part by PID: True; process status 0 (0 = no error); tools with a diameter read back: 20 of 20; 34.2 s
HoldsRev A: the generated machining plans replace the defaults in the operational features file20 OFs carry an NX CAM machining plan in char_demo.opf.json (17 faces, 3 edges formed by their machining feature), expected 20; the other 33 keep their defaults; e.g. OF-011: NX CAM SPOT_DRILL_2 (HoleDrilling, tool NXT0321_9005460120000 D12, program CENTER)
HoldsRev A: NX CMM Inspection linked the PMI (read from the saved inspection part)12 inspection features (expected 12), each named by a face PID of the part: True; 15 tolerances (expected 15); not linked ['GENERAL_NOTE', 'RA_08'], linked incomplete ['LENGTH_120']; inspection methods ['INSP-CYLINDER', 'INSP-OPEN-SLOT-TAB', 'INSP-PLANE']
HoldsRev A: characteristics NX CMM measures get NX's plan; the gap is reported15 characteristics on 11 NX CMM steps (expected 15); note: ['CH-061 on OF-038: NX CMM linked FLAT_IND but made no inspection feature for OF-038; default plan kept']
HoldsRev A: the QIF Plan measures every feature, then evaluates every characteristic exactly once154 numbered steps, 82 characteristics evaluated (expected 82), 5 action methods (['CoordinateMeasureFeatureMethod', 'ManualMeasureFeatureMethod', 'OtherMeasureFeatureMethod']), 11 steps name NX CMM's inspection feature and tolerance; measure-then-evaluate order: True
HoldsRev A: the features table says the plans are no longer only defaultschar_demo.opf.csv columns: ['Manufacturing plan', 'Test plan']
HoldsRev B: NX CAM recognised the machining features and made their operations (read from the saved CAM part)15 machining features (expected 15): SLOT_RECTANGULAR 1, STEP1HOLE 5, STEP2HOLE 1, SURFACE_PLANAR_RECTANGULAR 8; 23 operations (expected 23), operations per feature by type {'SLOT_RECTANGULAR': [1], 'STEP1HOLE': [2], 'STEP2HOLE': [4], 'SURFACE_PLANAR_RECTANGULAR': [1]}; every machining feature's faces are faces of the part by PID: True; process status 0 (0 = no error); tools with a diameter read back: 23 of 23; 35.3 s; first prediction 14 / 22 was wrong: NX mills the flat chamfer as a planar surface
HoldsRev B: the generated machining plans replace the defaults in the operational features file22 OFs carry an NX CAM machining plan in char_demo.opf.json (19 faces, 3 edges formed by their machining feature), expected 22; the other 38 keep their defaults; e.g. OF-046: NX CAM MILL_SURFACE_PLANAR_RECT_FACE_MILL_1 (VolumeBased25DMillingOperation, tool UGT0212_001 D116, program MILL_ROUGH)
HoldsRev B: NX CMM Inspection linked the PMI (read from the saved inspection part)12 inspection features (expected 12), each named by a face PID of the part: True; 15 tolerances (expected 15); not linked ['GENERAL_NOTE', 'RA_08'], linked incomplete ['LENGTH_120']; inspection methods ['INSP-CYLINDER', 'INSP-OPEN-SLOT-TAB', 'INSP-PLANE']
HoldsRev B: characteristics NX CMM measures get NX's plan; the gap is reported15 characteristics on 11 NX CMM steps (expected 15); note: ['CH-069 on OF-046: NX CMM linked FLAT_IND but made no inspection feature for OF-046; default plan kept']
HoldsRev B: the QIF Plan measures every feature, then evaluates every characteristic exactly once168 numbered steps, 89 characteristics evaluated (expected 89), 5 action methods (['CoordinateMeasureFeatureMethod', 'ManualMeasureFeatureMethod', 'OtherMeasureFeatureMethod']), 11 steps name NX CMM's inspection feature and tolerance; measure-then-evaluate order: True
HoldsRev B: the features table says the plans are no longer only defaultschar_demo.opf.csv columns: ['Manufacturing plan', 'Test plan']
HoldsThe QIF documents with their Plans are valid against the QIF 3.0 XSD2 of 2 valid against QIFDocument.xsd 3.0.0
HoldsNegative control: a rule library that does not exist makes no operationrule library 'NoSuchLibrary': rule library 'NoSuchLibrary' is not in NX's machining knowledge (machining_knowledge.xml); 0 operations, 0 OFs with an NX machining plan; plan note: ["NX CAM not run: rule library 'NoSuchLibrary' is not in NX's machining knowledge (machining_knowledge.xml)"]
HoldsRefusal: a part with its own CAM setup gets no NX plans, each half says whyplan_nx on A's saved CAM part: CAM 0 features / 0 operations, CMM 0 features / 0 tolerances; skipped: the part already has its own CAM setup, whose machining features NX keeps: CAM plans are made on a part without one NX: You cannot enter Inspection with a model that contains a Manufacturing Setup. (the part has its own CAM setup)
HoldsThe PIDs menu's CMM and CAM Plans makes the same plans, puts them on the part, and one Undo takes them offjournal plan_find.py played in NX on a copy of A: 20 CAM operations, 15 characteristics from NX CMM, 20 OFs with NX machining plans (expected 20 / 15 / 20); read back from NX: 53 of 53 faces and edges carry their plan, 20 generated; after one Undo: 0
HoldsThe download carries every script the PIDs menu names, and all they import42 files at 29b27ae; 40 needed by nxpid.men's ACTIONS and the import closure (lazy imports included): missing none
HoldsNegative control: a download without qif_core.py and plan_find.py is refused as incompletereported missing: {'nxgui/application/plan_find.py': 'named by nxgui/startup/nxpid.men', 'nxpid/qif_core.py': 'imported by nxgui/application/plan_find.py'}

In the NX window

PIDs > CMM and CAM Plans on the demo part: NX CAM made 20 operations on 13 machining features (20 of 53 operational features get them as their machining plan), NX CMM Inspection 12 inspection features and 15 tolerances (15 characteristics measured by them), 77 measurement steps for 82 characteristics, the QIF with its Plan valid; the plans are on the part's faces and edges, one Undo takes them off. The Information window lists every step.
The CAM copy the command made, in NX CAM's Operation Navigator (Geometry View): each machining feature NX recognised (the slot, four through holes, the counterbored hole, seven planar faces) with its operations and tools: spot drill and drill per hole; spot drill, drill, boring bar and counterbore tool for the counterbored hole; end and face mills.
The inspection copy, in NX CMM Inspection's navigator: 12 inspection features, each named by its face's persistent ID, and 15 tolerances tied to them (POS_4X once per hole). LENGTH_120 is linked but incomplete; the roughness symbol and the general note are not linked, so their characteristics keep the default plan.