P013 — AP203-claimed file uses AP214/AP242-only entities

§12.1 schema-conformance

assembly

Sources

Sender

FreeCAD/OCCT itself (writer)

Description

AP203 output emits entities `SEAM_CURVE`, `SURFACE_CURVE`, `PCURVE` not in AP203's defined entity set. Strict AP203 readers reject. Implementor-detail of OCCT's "merged AP" approach.

Reproducer recipe

Closed cylinder/sphere face with seam, exported with AP203 selected, contains `SEAM_CURVE`/`PCURVE` entities.

Expected kernel behavior

AP203 output validates as AP203; or explicit warning that `AUTOMOTIVE_DESIGN` is the actual schema.

Notes

Synonyms: "AP203 file uses AP214-only entities", "schema claim doesn't match content", "AP203 header but AP242 entities inside", "schema-conformance violation in file body".

Expected validation

occt=shape(1)/shape(1) gmsh=shape(1) ifc=schema_n/a

Byte assertions

Tier-3 assertions

Live oracle output

No live oracle data — run _run_corpus to populate.

Fixture content

Show fixture bytes (with defect highlighting)
1ISO-10303-21;
2/* P013: FILE_SCHEMA=CONFIG_CONTROL_DESIGN (AP203) but DATA section contains SEAM_CURVE and PCURVE — AP214/AP242-only entities not in AP203 entity set; strict AP203 readers must reject with schema-conformance diagnostic; OCCT silently accepts with empty result — must reject or diagnose; GEOMETRIC_CURVE_SET IS model entity — OCC yields empty */
3HEADER;
4FILE_DESCRIPTION(('P013'),'2;1');
5FILE_NAME('P013.stp','2026-06-17T00:00:00',(''),(''),'cad-research-suite','','');
6FILE_SCHEMA(('CONFIG_CONTROL_DESIGN'));
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('P013','P013','',(#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=DIRECTION('seam_dir',(1.0,0.0,0.0));
26#9064=VECTOR('',#9063,1.0);
27#9065=CARTESIAN_POINT('seam_start',(0.0,0.0,0.0));
28#9066=LINE('',#9065,#9064);
29#9067=CARTESIAN_POINT('pcurve_origin',(0.0,0.0));
30#9068=DIRECTION('pcurve_dir',(1.0,0.0));
31#9069=VECTOR('',#9068,1.0);
32#9070=LINE('',#9067,#9069);
33#9071=CARTESIAN_POINT('surf_origin',(0.0,0.0,0.0));
34#9072=DIRECTION('surf_z',(0.0,0.0,1.0));
35#9073=DIRECTION('surf_x',(1.0,0.0,0.0));
36#9074=AXIS2_PLACEMENT_3D('surf_plc',#9071,#9072,#9073);
37#9075=PLANE('seam_plane',#9074);
38#9076=DEFINITIONAL_REPRESENTATION('',(#9070),#9060);
39#9077=PCURVE('',#9075,#9076);
40#9078=SEAM_CURVE('',#9066,(#9077),.PARAMETER.);
41#9079=PRODUCT_CONTEXT('sub',#9000,'mechanical');
42#9080=PRODUCT('SeamCurveComp','SeamCurveComp','',(#9079));
43#9081=PRODUCT_DEFINITION_FORMATION('','',#9080);
44#9082=PRODUCT_DEFINITION('design','',#9081,#9053);
45#9083=NEXT_ASSEMBLY_USAGE_OCCURRENCE('1','seam_curve_instance','',#9054,#9082,$);
46ENDSEC;
47END-ISO-10303-21;