From dd22264877bdb5cbd268d33a46211afb1ebe36ab Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Sat, 11 Oct 2025 20:25:13 +0100 Subject: [PATCH] Fix sheet regeneration regression from d4f3280 Remove validate_sheet_files() check in regenerate_sheet() that prevented regenerating missing LAYOUT files. The validation was blocking the exact scenario that regeneration was designed to handle. This allows users to open a bare IFC file with configured drawings and sheets and have the SVG layouts automatically recreated with drawings placed at default positions. --- src/bonsai/bonsai/core/drawing.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/bonsai/bonsai/core/drawing.py b/src/bonsai/bonsai/core/drawing.py index 0345f4019a..d69147b13e 100644 --- a/src/bonsai/bonsai/core/drawing.py +++ b/src/bonsai/bonsai/core/drawing.py @@ -108,10 +108,6 @@ def add_sheet(ifc: type[tool.Ifc], drawing: type[tool.Drawing], titleblock: ifco def regenerate_sheet( drawing: type[tool.Drawing], sheet: ifcopenshell.entity_instance ) -> Union[list[tool.Drawing.SheetWarningType], None]: - warnings = drawing.validate_sheet_files(sheet) - if warnings: - return warnings - titleblock_uri = drawing.get_document_uri(sheet, "TITLEBLOCK") assert titleblock_uri