From 6bcfef5f253859d96a71464e6435c82e76632eef Mon Sep 17 00:00:00 2001 From: ramox81 <184937705+ramox81@users.noreply.github.com> Date: Wed, 23 Sep 2026 15:10:55 +0300 Subject: [PATCH] New drawings use metre insertion units, as the reference's new drawing A new drawing already follows the reference's metric template (MEASUREMENT 1, ISO-25); its insertion units were millimetres while the reference's new drawing uses metres (INSUNITS 6). Blocks and references inserted into a new drawing now convert with the same factor. Co-Authored-By: Claude Opus 5.5 --- src/scene/entity.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scene/entity.rs b/src/scene/entity.rs index 0c9f315cc..d804d6d44 100644 --- a/src/scene/entity.rs +++ b/src/scene/entity.rs @@ -2858,11 +2858,11 @@ impl Scene { /// standard linetypes and a compatible page setup on every paper layout. pub fn populate_new_drawing_defaults(&mut self) { crate::io::linetypes::populate_document(&mut self.document); - // A new drawing is metric, as the reference's ISO template: millimetre + // A new drawing is metric, as the reference's new drawing: metre // insertion units, metric measurement, and the ISO-25 dimension style // current. Standard stays available for imperial work. self.document.header.measurement = 1; - self.document.header.insertion_units = 4; + self.document.header.insertion_units = 6; let iso = crate::scene::creation_style::ensure_iso_dim_style(&mut self.document); self.document.header.current_dimstyle_name = "ISO-25".to_string(); // The name alone leaves the header pointing at the previous style, and