NX Automations · NX Open Python + PIDs menu

Operational Features

Download 1.0.1

Groups every face and edge of a part into the features a shop makes and inspects, and those into holes, pockets, slots and bosses, each with a persistent ID that follows it through design changes and into the STEP file.

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:48:52Z
Checks
17 of 17 hold
Overall
All checks hold
ResultCheck
HoldsThe demo block in NX is the one that was drawnNX holds 48 faces and 95 edges (expected 48, 95); face types planar 18, cylindrical 22, conical 4, revolved (tori) 4 (expected 18, 22, 4, 4); symbolic thread on H7: True
HoldsEvery edge is classed by the angle between its faces, and NX's own smoothness test agrees51 sharp (6 concave), 8 obtuse (3 concave), 36 tangential (expected 51 (6), 8 (3), 36); convexity undecided on 0; NX's own smoothness test (1 degree) calls 36 edges smooth, 36 of them the tangential ones and 0 others
HoldsEvery face is one operational feature of the kind it was built asChamfer 1, Conical surface 4, Cylindrical surface 1, Fillet 14, Hole / cylindrical surface 10, Planar surface 17, Threaded hole 1; each wraps one B-rep face: True (expected Chamfer 1, Conical surface 4, Cylindrical surface 1, Fillet 14, Hole / cylindrical surface 10, Planar surface 17, Threaded hole 1)
HoldsThe parents are found as built, with their sizes19 of 19 parents found with the kind, members and sizes worked by hand (pocket 17 surfaces + 40 edges; countersink, counterbore, spot face, counterdrill, four simple holes, slot, boss, chamfer, round, six plain surfaces); 11 outline edges (expected 11)
HoldsThe STEP file carries the layer: every face and edge in exactly one feature, each with its own UUIDread from the STEP file alone: 48 surface features over 48 faces, 95 edge features over 95 edges, 19 parents; checks: faces_covered pass, edges_covered pass, of_kinds pass, one_uuid_each pass, parents pass
HoldsNegative control: a damaged feature layer fails the file checka surface feature lost its face: check says fail (caught by the intended check); a parent lost its UUID: check says fail (caught by the intended check)
HoldsThe feature layer is valid AP242 edition 4 and leaves the PID layer passing13 of 13 PID validator checks pass on the file with the feature layer, the three AP242 edition 4 schema checks included
HoldsThe PID layer: unchanged where it worked, and the revolved-face defect it had is fixedsplit-bore plate: features off, the output is byte for byte the same as the PID tool at 2e781ec; demo block: 14 faces of the five revolved holes carry only 3 journal identifiers between them (FACE 1, FACE 2, FACE 3); all 48 faces now carry 48 distinct PIDs; the PID appender at 2e781ec leaves 11 faces unmatched on this file, the fixed one 0
HoldsIn NX: every face and edge carries its feature and parent as attributes, faces coloured by parentread back from NX: 48 of 48 faces and 95 of 95 edges carry OPF_OF, 84 edges carry a parent (the 11 outline edges none); faces coloured by parent: Cornflower 17, Emerald 17, Cyan 4, Orange 2, Medium Magenta 1, Deep Yellow 1; 6 plain faces keep their colour (expected holes 17, pocket 17, slot 4, boss 2, chamfer 1, round 1, plain 6)
HoldsOne Undo takes the attributes and colours back outafter one Undo: 0 faces and 0 edges carry OPF_OF, colours as before
HoldsA bore stored as two half cylinders is one bore and two edgesimported with merging off, NX holds 8 faces (2 half cylinders) and 18 edges; the bore becomes Simple hole 1: 1 surface + 2 edge features wrapping [2, 2, 2] B-rep items; 2 seams absorbed; 7 surface and 14 edge features in all (expected 7, 14, 2 seams)
HoldsNX's default import already joins the halves; both B-reps give the same operational featuresNX's default import joins the halves: 7 faces, 14 edges; both imports give the same features and parents: True (7 surface + 14 edge features, Planar surface, Simple hole)
HoldsNegative control: with wrapping off the split bore is not one hole, and nothing else changeswrapping off, the split bore stays 8 surface and 18 edge features with 0 hole found (expected 8, 18, none); on the demo block, which has no split faces, wrapping on or off gives the same features: True
HoldsDesign iteration 1: a deeper pocket and a wider hole keep every feature and parent UUIDpocket floor 20 -> 18 and H1 8 -> 9: the pocket now reads depth 12 and 1 simple hole reads 9; 143 of 143 feature UUIDs and 19 of 19 parent UUIDs unchanged, 0 new, 0 gone
HoldsDesign iteration 2: an added hole adds exactly its 3 features and 1 parenta hole added: 3 new feature UUIDs and 1 new parent (Simple hole 5 {'diameter': 8.0, 'through': True, 'threaded': False, 'length': 30.0}); 143 of 143 feature and 19 of 19 parent UUIDs unchanged, 0 gone
HoldsRebuilt from the STEP file alone, the features and parents carry the same UUIDsthe STEP file imported back as a dumb solid: 143 of 143 feature and 19 of 19 parent UUIDs come out the same (the faces arrive with their PID names); kinds differ only where expected: [('Threaded hole', 'Hole / cylindrical surface')] (the symbolic thread is NX data the STEP file does not carry)
HoldsNX reads every exported file backNX 2606 re-imported 6 of 6 exports with 0 errors

In the NX window

The demo block after Find Operational Features: each parent's faces in their own colour (holes blue, the pocket green, the slot cyan, the boss orange, the round on the front left edge yellow); plain surfaces keep the part's colour.
Find Operational Features on the demo block: 48 faces and 95 edges become 48 surface and 95 edge features in 19 parents; attributes on all 143, 42 faces coloured, and one Undo takes them back out.
The tree in NX's Information window: each parent with its sizes, then its surface and edge features, each with its UUID.