step-examples/12-7-pmi/Pmi156.stp
Sources
- Pattern-mined from NIST MBE PMI test suite / CAx-IF FTC/CTC AP242 files (public-domain / describe-only — pattern only, no bytes copied)
- audit/mining_nist_mbxif_2026-07.md #1.
Description
AP242 semantic-GD&T files carry runout tolerances (`circular_runout_tolerance`, `total_runout_tolerance`) whose tolerance zone is defined relative to a datum axis through a `datum_system` (built from `datum_reference_compartment` → `datum_reference_element` → `datum`). The entire runout tolerance family is absent from the corpus (nearest is the generic `position_tolerance` of Pmi010). A reader that maps unknown tolerance subtypes onto a generic tolerance silently downgrades runout to circularity, and one that drops the datum-axis link loses the reference the zone is measured against.
Reproducer recipe
AP242 file; cylinder feature `SHAPE_ASPECT`; `DATUM('A',...)` → `DATUM_REFERENCE_ELEMENT` → `DATUM_REFERENCE_COMPARTMENT` → `DATUM_SYSTEM`; `CIRCULAR_RUNOUT_TOLERANCE('circular_runout','',#mag,#aspect,#datum_sys)` and `TOTAL_RUNOUT_TOLERANCE(...)` each with a real `LENGTH_MEASURE_WITH_UNIT` magnitude.
Expected kernel behavior
Import both runout FCFs, preserving the datum-axis link and the distinct runout subtype; runout must not be silently downgraded to circularity or dropped.
Notes
Semantic-PMI carrier geometry is a `GEOMETRIC_CURVE_SET` (single point → one loaded vertex, like Pmi010). Synonyms: "circular runout tolerance dropped", "total runout tolerance not parsed", "runout FCF datum axis lost", "runout downgraded to circularity", "AP242 runout tolerance family absent". Provenance tier: bytes-only — semantic GD&T tolerance metadata is oracle-invisible at BRep load (OCC loads only the carrier geometry); pattern-mined, not yet mutation-verified.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a
Provenance tier
bytes-only — defect not fully embodied in fixture bytes.
Byte assertions
contains(b'CIRCULAR_RUNOUT_TOLERANCE')contains(b'TOTAL_RUNOUT_TOLERANCE')contains(b'DATUM_SYSTEM')
Tier-3 assertions
shape_null == Falsen_vertices_total == 1
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes (with defect highlighting)
1ISO-10303-21; 2/* Pmi156: CIRCULAR_RUNOUT_TOLERANCE + TOTAL_RUNOUT_TOLERANCE on a cylinder feature, each referencing a DATUM_SYSTEM built on datum axis A; semantic runout tolerance family absent from corpus; GEOMETRIC_CURVE_SET IS model entity â OCC loads the point as one vertex */ 3HEADER; 4FILE_DESCRIPTION(('Pmi156'),'2;1'); 5FILE_NAME('Pmi156.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','',''); 6FILE_SCHEMA(('AP242_MANAGED_MODEL_BASED_3D_ENGINEERING_MIM_LF { 1 0 10303 442 1 1 4 }')); 7ENDSEC; 8DATA; 9#9000=APPLICATION_CONTEXT('mechanical design'); 10#1=CARTESIAN_POINT('',(0.0,0.0,0.0)); 11#2=GEOMETRIC_CURVE_SET('',(#1)); 12#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 13#9051=PRODUCT('Pmi156','Pmi156','',(#9050)); 14#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 15#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 16#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 17#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 18#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 19#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 20#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 21#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 22#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 23#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#2),#9060); 24#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 25#9063=DATUM('A','datum axis A',#9055,.T.,'A'); 26#9064=DATUM_REFERENCE_ELEMENT('',$,#9063); 27#9065=DATUM_REFERENCE_COMPARTMENT('',$,#9064); 28#9066=DATUM_SYSTEM('datum_system_A','',#9055,.T.,(#9065)); 29#9067=SHAPE_ASPECT('cylinder_od','runout feature',#9055,.T.); 30#9068=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.05),#9056); 31#9069=LENGTH_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.1),#9056); 32#9070=CIRCULAR_RUNOUT_TOLERANCE('circular_runout','0.05 circular runout wrt A',#9068,#9067,#9066); 33#9071=TOTAL_RUNOUT_TOLERANCE('total_runout','0.1 total runout wrt A',#9069,#9067,#9066); 34ENDSEC; 35END-ISO-10303-21;