NX Automations · NX Open Python + PIDs menu
Operational Features
Download 1.0.1Groups 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
Everything is read from the solid itself, so it works on a native part and on an imported dumb solid alike.
1. Surfaces and edges. For every face NX gives its surface (plane, cylinder, cone, torus, ...), an interior point and the outward normal there. For every edge the tool samples three points and asks for the outward normals of both faces. The angle between the faces is 180 degrees minus the angle between the normals: 90 or less is a sharp edge, up to 180 obtuse, 180 tangential. NX has no convex/concave call, so a point is stepped off the edge across its bisector and NX is asked whether it lies inside the solid. NX's own smoothness test is asked too, as a second opinion on the tangential edges.
2. Wrapping. Two faces on the same surface that meet along a smooth edge are one feature, and the seam between them is absorbed: a bore that another CAD system stored as two half cylinders, two seams and four half circles becomes one bore and two edges. Edges between the same two features that run on smoothly are one edge feature.
3. Parents. A concave cylinder that closes on itself starts a hole; everything coaxial and concave hanging off it joins: counterbore floors and walls, countersink and counterdrill cones, drill points. What it holds decides the kind (a counterbore at most a quarter of its diameter deep is a spot face). Faces joined by concave edges or concave fillets form a pocket (open to one face), a slot (two walls facing each other) or a step (which needs a floor). Walls square to the part's largest face that run into each other along obtuse, tangential or inside corners are a profile: an outline cut through the part, which a part recovered from a drawing or a DXF draws as many short flat faces; an outside sharp corner ends it. A convex cylinder with its cap is a boss; a chamfer or round on an outside edge is an edge break; any other face stands alone. Each edge belongs to the parent that cut it; an edge between two plain faces is part outline.
4. IDs. A feature's UUID is a V5 UUID of its faces' (or edges') persistent IDs, a parent's of its main face's. Those IDs are stored in the part as face and edge names, so a design change that keeps the faces keeps every UUID, and a STEP file imported back gives the same UUIDs.
| thing | STEP record | UUID |
|---|---|---|
| surface feature | SHAPE_ASPECT on its face (COMPOSITE_GROUP_SHAPE_ASPECT when it wraps several, seams included) | V5 of its faces' IDs |
| edge feature | SHAPE_ASPECT on its edge(s) | V5 of its edges' IDs |
| parent | COMPOSITE_GROUP_SHAPE_ASPECT related to its features | V5 of its main face's ID |
5. Checked from the file. A reader that has only the STEP file confirms every face and edge sits in exactly one feature, every feature and parent has one UUID, and every surface has a parent.
On the demo block (48 faces, 95 edges): 48 surface and 95 edge features, 19 parents. The pocket alone is 17 surfaces and 40 edges: 57 features.
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.