From 92bd91ea439771b12ea1fdff334c9a8615009d19 Mon Sep 17 00:00:00 2001 From: JULIEN MASNADA Date: Tue, 7 Jan 2025 10:03:02 +0100 Subject: [PATCH] SH3DImporter: Fix walls Length attribute (#18854) * Make IFC project optional * make sure wall.Length is properly set --------- Co-authored-by: Yorik van Havre --- src/Mod/BIM/Resources/ui/preferences-sh3d-import.ui | 4 ++-- src/Mod/BIM/importers/importSH3DHelper.py | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Mod/BIM/Resources/ui/preferences-sh3d-import.ui b/src/Mod/BIM/Resources/ui/preferences-sh3d-import.ui index 347db98a33..ffc9bcc6d3 100644 --- a/src/Mod/BIM/Resources/ui/preferences-sh3d-import.ui +++ b/src/Mod/BIM/Resources/ui/preferences-sh3d-import.ui @@ -261,7 +261,7 @@ - Create a default Render project with the newly Site + Create a default Render project with the newly created Site Create Render Project (requires Render) @@ -350,4 +350,4 @@ - \ No newline at end of file + diff --git a/src/Mod/BIM/importers/importSH3DHelper.py b/src/Mod/BIM/importers/importSH3DHelper.py index 1555978d44..34a0679fbb 100644 --- a/src/Mod/BIM/importers/importSH3DHelper.py +++ b/src/Mod/BIM/importers/importSH3DHelper.py @@ -848,6 +848,9 @@ class WallHandler(BaseHandler): wall = Arch.makeWall(solid) else: wall = Arch.makeWall(sweep) + # For some reason the Length of the spine is not propagated to the + # wall itself... + wall.Length = spine.Length return wall def _get_wall_details(self, floor, elm):