step-examples/12-1b-header/Lh016.stp
Sources
- 07-stepcode-ifcopenshell T013
Description
Edition 3 allows additional header entities beyond the required three (`FILE_POPULATION`, `SECTION_LANGUAGE`, implementation-private entries). Strict Edition-1/2 readers reject any header entity beyond the canonical three; tolerant Edition-3 readers must accept them.
Reproducer recipe
append `FILE_INFO('Report Date','2025-04-21 18:16:37', ..);` between FILE_SCHEMA and ENDSEC.
Expected kernel behavior
accept any number of extra header entities under Edition 3; warn for unknown names; reject under strict Edition-2.
Notes
Synonyms: "FILE_POPULATION header record", "Edition 3 extra header entities", "SECTION_LANGUAGE in HEADER", "Ed.2 reader rejects FILE_INFO", "Edition 3 header beyond required three".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'FILE_POPULATION') or contains(b'SECTION_LANGUAGE') or contains(b'FILE_INFO')
Tier-3 assertions
shape_null == True
Live oracle output
No live oracle data — run _run_corpus to populate.
Fixture content
Show fixture bytes
1ISO-10303-21; 2/* Lh016: Edition-3 extra header entities beyond the required three */ 3/* ISO 10303-21 Ed.3: FILE_POPULATION, SECTION_LANGUAGE, FILE_INFO are permitted */ 4/* Strict Ed.1/2 readers reject any header entity beyond the canonical three */ 5/* DEFECT: FILE_INFO and FILE_POPULATION appear after FILE_SCHEMA */ 6HEADER; 7FILE_DESCRIPTION(('Lh016: Edition-3 extra header entities FILE_INFO FILE_POPULATION'),'2;1'); 8FILE_NAME('Lh016.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN')); 10/* DEFECT: Ed.3 extensions â strict Ed.1/2 readers reject these additional records */ 11FILE_INFO('Report Date','2025-04-21 18:16:37',''); 12FILE_POPULATION('default',(''),(#5)); 13ENDSEC; 14DATA; 15#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 16#2=CARTESIAN_POINT('corner',(1.,1.,0.)); 17#3=DIRECTION('xdir',(1.,0.,0.)); 18#4=DIRECTION('zdir',(0.,0.,1.)); 19#5=GEOMETRIC_CURVE_SET('ed3-extra-header-shape',(#1,#2)); 20ENDSEC; 21END-ISO-10303-21;