Wr009 — Spurious `$` for required parameter (writer omits required value)

§12.13 writer-pathology (sub-class: optional-parameter abuse)

writer

Sources

Sender

Older Pro/E and some lightweight web-CAD STEP exporters

Description

The producer emits `$` (omitted) where the EXPRESS schema declares the attribute as required (non-OPTIONAL). Example: `AXIS2_PLACEMENT_3D('placement',#10,$,$)` where the schema specifies `axis` and `ref_direction` as effectively required when both are present (one cannot be `$` if the other is non-`$` and the Z-axis convention is to be applied). Some kernels invent a default direction; others reject. Bug-reporter language: "STEP file has dollar signs for required fields", "missing axis direction", "writer omitted required attribute".

Reproducer recipe

`AXIS2_PLACEMENT_3D('p',#10,$,$)` paired with a `MANIFOLD_SOLID_BREP` that depends on the placement.

Expected kernel behavior

reject as malformed when a required attribute is `$`; do not silently substitute Z+X defaults because the producer's intent is unrecoverable.

Notes

AP242 marks `axis` and `ref_direction` as OPTIONAL in the EXPRESS; but most receivers expect both populated when the placement is referenced from a non-trivial geometry context. **OCC behavior**: silently substitutes the Z+X default convention rather than rejecting; this is the kernel mishandling the catalog above forbids. Provenance tier: writer-side (Q5 reclassification 2026-07-01).

Expected validation

occt=empty/empty gmsh=empty ifc=schema_n/a

Provenance tier

writer-side — defect not fully embodied in fixture bytes.

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/* Wr009: spurious $ for required parameter in AXIS2_PLACEMENT_3D */
3HEADER;
4FILE_DESCRIPTION(('Wr009 - spurious dollar for required attribute'),'2;1');
5FILE_NAME('Wr009.stp','2026-06-20T00:00:00',('auto-generated'),(''),
6  'auto-generated','','');
7FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }'));
8ENDSEC;
9DATA;
10/* Defect: AXIS2_PLACEMENT_3D has $,$ for axis and ref_direction */
11#1=CARTESIAN_POINT('origin',(0.,0.,0.));
12/* axis and ref_direction are $ (omitted) but are required for non-trivial use */
13#2=AXIS2_PLACEMENT_3D('placement',#1,$,$);
14#3=PLANE('face-plane',#2);
15#4=CARTESIAN_POINT('p0',(0.,0.,0.));
16#5=CARTESIAN_POINT('p1',(1.,0.,0.));
17#6=CARTESIAN_POINT('p2',(1.,1.,0.));
18#7=CARTESIAN_POINT('p3',(0.,1.,0.));
19#8=VERTEX_POINT('v0',#4);
20#9=VERTEX_POINT('v1',#5);
21#10=VERTEX_POINT('v2',#6);
22#11=VERTEX_POINT('v3',#7);
23#12=DIRECTION('xdir',(1.,0.,0.));
24#13=VECTOR('xvec',#12,1.);
25#14=LINE('edge-line',#4,#13);
26#15=DIRECTION('ydir',(0.,1.,0.));
27#16=VECTOR('yvec',#15,1.);
28#17=LINE('edge-line2',#5,#16);
29#18=DIRECTION('nxdir',(-1.,0.,0.));
30#19=VECTOR('nxvec',#18,1.);
31#20=LINE('edge-line3',#6,#19);
32#21=DIRECTION('nydir',(0.,-1.,0.));
33#22=VECTOR('nyvec',#21,1.);
34#23=LINE('edge-line4',#7,#22);
35#24=EDGE_CURVE('e0',#8,#9,#14,.T.);
36#25=EDGE_CURVE('e1',#9,#10,#17,.T.);
37#26=EDGE_CURVE('e2',#10,#11,#20,.T.);
38#27=EDGE_CURVE('e3',#11,#8,#23,.T.);
39#28=ORIENTED_EDGE('',*,*,#24,.T.);
40#29=ORIENTED_EDGE('',*,*,#25,.T.);
41#30=ORIENTED_EDGE('',*,*,#26,.T.);
42#31=ORIENTED_EDGE('',*,*,#27,.T.);
43#32=EDGE_LOOP('loop',(#28,#29,#30,#31));
44#33=FACE_OUTER_BOUND('fob',#32,.T.);
45#34=ADVANCED_FACE('face',(#33),#3,.T.);
46#35=CLOSED_SHELL('shell',(#34));
47#36=MANIFOLD_SOLID_BREP('body',#35);
48ENDSEC;
49END-ISO-10303-21;