step-examples/12-8-mixed/M058.stp
Sources
- 16-iso-spec AP214 vs AP203 entity-set comparison
Description
ISO 10303-21 FILE_SCHEMA declares one (or more) active schemas. When a single FILE_SCHEMA names AP203 only but the DATA section contains entities defined only in AP214 (e.g. APPLIED_GROUP_ASSIGNMENT), strict AP203 readers either reject the unknown entity or attempt to parse it under AP203 with possibly wrong attribute interpretation.
Reproducer recipe
`FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'))` with `APPLIED_GROUP_ASSIGNMENT(#20,(#10))` in DATA.
Expected kernel behavior
reject unknown entity types in the declared schema; or, in tolerant mode, accept under the most-capable available schema with a warning.
Notes
Synonyms: "AP203 tag with AP214 entities", "schema-version vs entity-vocabulary disagreement", "AP214-only entity in AP203 file", "mixed schema declaration". **See also**: Lh007, Lh019, M057.
Expected validation
occt=shape(1)/shape(1) gmsh=shape(2) ifc=schema_n/a
Byte assertions
contains(b'CONFIG_CONTROL_DESIGN')contains(b'APPLIED_GROUP_ASSIGNMENT')
Tier-3 assertions
shape_null == Falsen_edges_total == 1n_vertices_total == 2edge[0].curve_type == "circle"edge[0].analytic.radius == 25.0
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/* M058: GEOMETRIC_CURVE_SET in file with AP203 FILE_SCHEMA but AP214-only entity APPLIED_GROUP_ASSIGNMENT in DATA â schema declaration vs entity-set mismatch; input: STEP file with FILE_SCHEMA(('CONFIG_CONTROL_DESIGN')) (AP203) whose DATA section contains APPLIED_GROUP_ASSIGNMENT, an entity defined only in AP214 (ISO 10303-214 §4.6.1) and absent from AP203 (CONFIG_CONTROL_DESIGN); strict AP203 readers reject the unknown entity type; tolerant readers attempt to parse under AP203 with possibly wrong attribute interpretation, producing silent corruption; kernel must reject unknown entity types in the declared schema; or, in tolerant mode, accept under the most-capable available schema with a warning; OCC silently accepts (no diagnostic, empty result); GEOMETRIC_CURVE_SET IS the model entity â OCC yields empty; synonyms: AP203 tag with AP214 entities, schema-version vs entity-vocabulary disagreement, AP214-only entity in AP203 file, mixed schema declaration */ 3HEADER; 4FILE_DESCRIPTION(('M058'),'2;1'); 5FILE_NAME('M058.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=DESCRIPTIVE_REPRESENTATION_ITEM('file_schema_override','CONFIG_CONTROL_DESIGN'); 11#2=GROUP('component_group','Design group for sub-components'); 12#3=CARTESIAN_POINT('part_origin',(0.,0.,0.)); 13#4=DIRECTION('z_axis',(0.,0.,1.)); 14#5=DIRECTION('x_axis',(1.,0.,0.)); 15#6=AXIS2_PLACEMENT_3D('part_placement',#3,#4,#5); 16#7=CIRCLE('part_circle',#6,25.); 17#8=APPLIED_GROUP_ASSIGNMENT(#2,(#7)); 18#9=GEOMETRIC_CURVE_SET('ap203-schema-with-ap214-entity-applied-group',(#2,#8,#7,#1,#6)); 19#9050=PRODUCT_CONTEXT('',#9000,'mechanical'); 20#9051=PRODUCT('M058','M058','',(#9050)); 21#9052=PRODUCT_DEFINITION_FORMATION('','',#9051); 22#9053=PRODUCT_DEFINITION_CONTEXT('part definition',#9000,'design'); 23#9054=PRODUCT_DEFINITION('','','',#9052,#9053); 24#9055=PRODUCT_DEFINITION_SHAPE('','','',#9054); 25#9056=(LENGTH_UNIT()NAMED_UNIT(*)SI_UNIT(.MILLI.,.METRE.)); 26#9057=(NAMED_UNIT(*)PLANE_ANGLE_UNIT()SI_UNIT($,.RADIAN.)); 27#9058=(NAMED_UNIT(*)SI_UNIT($,.STERADIAN.)SOLID_ANGLE_UNIT()); 28#9059=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(1.0E-7),#9056,'distance_accuracy_value',''); 29#9060=(GEOMETRIC_REPRESENTATION_CONTEXT(3)GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#9059))GLOBAL_UNIT_ASSIGNED_CONTEXT((#9056,#9057,#9058))REPRESENTATION_CONTEXT('','3D')); 30#9061=MANIFOLD_SURFACE_SHAPE_REPRESENTATION('',(#9),#9060); 31#9062=SHAPE_DEFINITION_REPRESENTATION(#9055,#9061); 32ENDSEC; 33END-ISO-10303-21;