NX Automations · NX Open Python + PIDs menu
QIF Export
Download 1.0.1Writes a part's operational features, their parents and its characteristics as a QIF 3.0 document in which every face, edge, feature and characteristic carries its persistent ID as its QPId.
Verification passing on NX 2606.5001 · 2026-10-29 · repo 40a0160
It starts from what the earlier automations find on the part: the operational features (every face and edge as a feature, grouped into parents) and the characteristics (every PMI decomposed into requirements with limits on those features), all with persistent IDs.
1. The model. QIF ties a feature to the geometry through QIF's own B-rep. Every face whose surface is a plane, cylinder, cone, sphere or torus and every straight or circular edge is written as a QIF Face or Edge with its surface or curve, and carries its persistent ID as a QPId. A freeform face is left out of the topology (QIF would need its NURBS data) and its feature still carries its PID.
2. Features. QIF calls an operational feature simply a feature. Each one becomes a feature nominal (plane, cylinder, cone, circle, line, ...) with its operational feature's UUID, tied to exactly its faces or edges, and pointing at its parent. Parents (a counterbored hole, a slot) are group features with their own UUIDs; so are composite features (the two walls a distance is measured between) and constructed ones (the mid-plane a datum is on). Each has one feature item, the thing a plan measures, with a UUID derived from it.
3. Characteristics. Each characteristic becomes a QIF definition, nominal and item: a diameter with its nominal and deviations, a position with its zone, material condition and datum reference frame, a flatness with its zone, Ra in the document's units. QIF has no edge-break or chamfer characteristic: those are user-defined linear characteristics named for what they are, with their limits. The item carries the characteristic's UUID.
| item | QPId |
|---|---|
| face, edge | its persistent ID (PID) |
| feature | its operational feature's UUID |
| parent, composite, constructed feature | its own UUID |
| feature item | V5 UUID of its feature's |
| characteristic | its UUID (PMI UUID + feature UUID) |
| document | V5 UUID of everything above: same content, same QPId |
4. Checked against the standard. The QIF 3.0 schemas are fetched at a pinned commit of the QIF community repository, every file checked by its hash, and each document is validated with the .NET schema validator that ships with Windows, its keys and references included: a QPId used twice or a reference to nothing fails.
5. Revisions. Two documents compare QPId by QPId. On the demo part a revision that edits a tolerance, adds a hole and chamfers a corner keeps every unaffected face, edge, feature and characteristic under the same QPId, although most characteristic tags renumber.
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.