mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-09 17:31:45 +00:00
980988f208
The project-unit to Blender-unit mapping in format_distance only knew FOOT/INCH/METRE/DECIMETRE/CENTIMETRE/MILLIMETRE, so creating a project with Kilometers or Miles in the New Project Wizard crashed with KeyError: 'KILOMETRE' (or 'MILE') as soon as the spatial tree formatted an elevation. Add the missing Blender-supported units (kilometre, mile, micrometre) and fall through gracefully for anything else (for example HECTOMETRE) so unknown units use the adaptive formatting branch instead of raising. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>