step-examples/12-5-units/U001.stp
Sources
- 10-vendor-kbs.md V001 (forums.autodesk.com t5/inventor-forum/step-file-units-are-messed/td-p/619614)
Sender
Solid Edge (mm)
Description
STEP written from Solid Edge with `LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI., .METRE.)` plus a small `UNCERTAINTY_MEASURE_WITH_UNIT` (e.g. 0.001 mm) and coordinates in mm (e.g. 100×50 mm extents) is interpreted by Inventor as base SI (metre), giving an imported part 1000 times bigger than expected after the unit conversion. The receiver ignores the producer's `LENGTH_UNIT` context (and any auxiliary `DIMENSIONAL_EXPONENTS` instance) and defaults to base SI.
Reproducer recipe
`GEOMETRIC_REPRESENTATION_CONTEXT` whose units list contains `(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI., .METRE.))`; coordinates encoded as raw mm; reader that strips the prefix and treats the number as metres.
Expected kernel behavior
reject default-to-base; honour `SI_UNIT.prefix`; never silently rescale because the reader expected another unit.
Notes
**See also**: U002, U003, U015. **OCC behavior**: silently accepts the millimetre-prefixed file with no scale-mismatch diagnostic. The surrounding tooling pipeline is what mis-reads; the catalog above forbids silent rescaling. Synonyms: "Solid Edge mm imported as meters 1000x bigger", "Inventor reads STEP mm as metres", "STEP imported 1000 times too large", "mm prefix ignored on STEP import", "MILLI METRE silently treated as METRE".
Expected validation
occt=empty/empty gmsh=empty ifc=schema_n/a
Byte assertions
contains(b'SI_UNIT(.MILLI.,.METRE.)') or contains(b'SI_UNIT(.MILLI., .METRE.)')matches(rb'GEOMETRIC_REPRESENTATION_CONTEXT|REPRESENTATION_CONTEXT')
Tier-3 assertions
shape_null == True
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/* U001: Solid Edge mm STEP read as metres by Inventor (1000x too big) */ 3/* Solid Edge emits LENGTH_UNIT with SI_UNIT(.MILLI.,.METRE.) and mm coordinates */ 4/* Inventor legacy importer strips .MILLI. prefix and reads values as base metres */ 5/* Result: a 100x50 mm part loads at 100x50 m â 1000x too large */ 6HEADER; 7FILE_DESCRIPTION(('U001: SI_UNIT(.MILLI.,.METRE.) prefix ignored on STEP import'),'2;1'); 8FILE_NAME('U001.stp','2026-06-20T00:00:00',(''),(''),'cad-research-suite','',''); 9FILE_SCHEMA(('AUTOMOTIVE_DESIGN { 1 0 10303 214 3 1 1 }')); 10ENDSEC; 11DATA; 12/* Geometry: a 100x50x25 mm box expressed in millimetre coordinates */ 13#1=CARTESIAN_POINT('origin',(0.,0.,0.)); 14#2=CARTESIAN_POINT('corner-x',(100.0,0.,0.)); 15#3=CARTESIAN_POINT('corner-y',(0.,50.0,0.)); 16#4=CARTESIAN_POINT('corner-z',(0.,0.,25.0)); 17#5=CARTESIAN_POINT('corner-xyz',(100.0,50.0,25.0)); 18#6=DIRECTION('xdir',(1.,0.,0.)); 19#7=DIRECTION('zdir',(0.,0.,1.)); 20/* DEFECT: SI_UNIT with .MILLI. prefix â Inventor treats numeric values as metres */ 21/* not millimetres; a coordinate of 100.0 should be 0.1 m after unit application */ 22#10=(LENGTH_UNIT() NAMED_UNIT(*) SI_UNIT(.MILLI.,.METRE.)); 23#11=(NAMED_UNIT(*) PLANE_ANGLE_UNIT() SI_UNIT($,.RADIAN.)); 24#12=(NAMED_UNIT(*) SI_UNIT($,.STERADIAN.) SOLID_ANGLE_UNIT()); 25/* UNCERTAINTY_MEASURE_WITH_UNIT at 0.001 mm (typical Solid Edge signature) */ 26#13=UNCERTAINTY_MEASURE_WITH_UNIT(LENGTH_MEASURE(0.001),#10, 27 'distance_accuracy_value','maximum model space distance between geometric entities'); 28#14=GEOMETRIC_REPRESENTATION_CONTEXT(3) GLOBAL_UNCERTAINTY_ASSIGNED_CONTEXT((#13)) 29 GLOBAL_UNIT_ASSIGNED_CONTEXT((#10,#11,#12)) REPRESENTATION_CONTEXT('ctx','3D')); 30/* Model entity is GEOMETRIC_CURVE_SET â OCC returns empty shape */ 31#20=GEOMETRIC_CURVE_SET('solid-edge-mm-part',(#1,#2,#3,#4,#5)); 32ENDSEC; 33END-ISO-10303-21;