step-examples/12-1b-header/Lh035.stp
Sources
- 16-iso-spec ISO 10303-21 Ed.3 §8 (ANCHOR mapping name→instance)
Description
Edition-3 ANCHOR sections publish a mapping from anchor-name (a string) to instance handle. The spec is silent on whether duplicate names are permitted; a strict implementation rejects, a lenient one takes first-wins or last-wins (divergent across implementations). A REFERENCE in another file pointing at the duplicated name resolves nondeterministically.
Reproducer recipe
`<origin>=#10;` and `<origin>=#11;` in the ANCHOR section, with `#10` and `#11` distinct CARTESIAN_POINTs.
Expected kernel behavior
reject duplicate anchor names with a diagnostic; or, if a tolerant policy is chosen, document the deterministic disambiguation rule (first-wins / last-wins) and warn.
Notes
**See also**: Lh026. Synonyms: "duplicate anchor name in ANCHOR section", "two anchors with same name", "ANCHOR name collision", "anchor name published twice", "ambiguous anchor in STEP".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'ANCHOR;')matches(rb'(?s)<origin>=#10;.*<origin>=#11;')
Tier-3 assertions
load == "ok"
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/* Lh035: ANCHOR section with duplicate anchor name <origin> */ 3/* ISO 10303-21 Ed.3: ANCHOR maps anchor-name to instance handle */ 4/* DEFECT: <origin> is published twice â once for #10, once for #11 */ 5/* strict receiver must reject; lenient receiver must document first-wins/last-wins */ 6/* OCC silently accepts with diagnostic but loads empty result */ 7HEADER; 8FILE_DESCRIPTION(('Lh035: ANCHOR section with duplicate anchor name origin'),'2;1'); 9FILE_NAME('Lh035.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 10FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 11ENDSEC; 12ANCHOR; 13/* DEFECT: <origin> appears twice â maps to two different instances */ 14<origin>=#10; 15<origin>=#11; 16<corner>=#12; 17ENDSEC; 18DATA; 19#10=CARTESIAN_POINT('origin-a',(0.,0.,0.)); 20#11=CARTESIAN_POINT('origin-b',(0.5,0.,0.)); 21#12=CARTESIAN_POINT('corner',(1.,1.,0.)); 22#13=DIRECTION('xdir',(1.,0.,0.)); 23#14=DIRECTION('zdir',(0.,0.,1.)); 24#15=GEOMETRIC_CURVE_SET('duplicate-anchor-shape',(#10,#12)); 25ENDSEC; 26END-ISO-10303-21;