step-examples/12-1b-header/Lh039.stp
Sources
- 16-iso-spec ISO 10303-21 Ed.3 §7 (intra-section vs cross-section reference)
Description
Edition-3 multi-DATA-section files may reuse `#NNN` in different sections; intra-section references default to the local section. A producer may emit a bare `#NNN` inside one section that should resolve against another (intent unclear), or copy/paste a reference forgetting the `@name` prefix. The receiver resolves to the wrong instance silently.
Reproducer recipe
DATA section `'geom'` defines `#1` and `#2`; DATA section `'pmi'` defines its own `#1` and `#2` and creates an `AXIS2_PLACEMENT_3D(..,#1,#2,@geom#2)` whose first two arguments resolve locally.
Expected kernel behavior
resolve bare `#NNN` strictly against the local section; never silently fall back to another section. Document or reject duplicate intra-section instance numbers across sections only when cross-references are explicit.
Notes
**See also**: Lh024, Lh033. Synonyms: "#NNN reuse with ambiguous local reference", "intra-section reference resolves wrong", "missing @name prefix on reference", "STEP multi-DATA local-reference ambiguity", "bare #NNN in multi-section STEP".
Expected validation
occt=reject/reject gmsh=reject ifc=schema_n/a
Byte assertions
contains(b"DATA('geom'") or contains(b"DATA('pmi'") or contains(b'@geom#')contains(b'@geom') or contains(b'@geometry')
Tier-3 assertions
load != "ok"
Cross-references
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Lh039 - DATA section names colliding across sections with shared 3 * #NNN re-use plus a reference that does not specify the section 4 * Defect: ISO 10303-21 Edition 3 multi-DATA-section files may reuse 5 * #NNN in different sections; intra-section references default to 6 * the local section. A producer may emit a bare #NNN inside one 7 * section that should be resolved against another section (intent 8 * unclear), or copy/paste a reference from a different section 9 * forgetting the @name prefix. The receiver resolves to the wrong 10 * instance silently. */ 11HEADER; 12FILE_DESCRIPTION(('Lh039 - multi-DATA section #NNN reuse with ambiguous local ref'),'2;1'); 13FILE_NAME('Lh039.stp','2026-04-26T00:00:00',(''),(''), 14 'cad-research-suite','',''); 15FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 16ENDSEC; 17DATA('geom'); 18#1=CARTESIAN_POINT('geom-origin',(0.0,0.0,0.0)); 19#2=DIRECTION('z',(0.0,0.0,1.0)); 20ENDSEC; 21DATA('pmi'); 22/* #1 here refers to the local 'pmi' section but the producer may 23 * have intended @geom#1 - kernel cannot tell. */ 24#1=CARTESIAN_POINT('pmi-origin',(5.0,5.0,5.0)); 25#2=DIRECTION('z2',(0.0,1.0,0.0)); 26/* Local placement - which #1 wins? Same-section local wins per 27 * spec; the cross-reference must be explicit @geom#1. */ 28#10=AXIS2_PLACEMENT_3D('placement',#1,#2,@geom#2); 29ENDSEC; 30END-ISO-10303-21;