mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 06:58:56 +00:00
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.
This commit is contained in:
@@ -108,10 +108,6 @@ def add_sheet(ifc: type[tool.Ifc], drawing: type[tool.Drawing], titleblock: ifco
|
|||||||
def regenerate_sheet(
|
def regenerate_sheet(
|
||||||
drawing: type[tool.Drawing], sheet: ifcopenshell.entity_instance
|
drawing: type[tool.Drawing], sheet: ifcopenshell.entity_instance
|
||||||
) -> Union[list[tool.Drawing.SheetWarningType], None]:
|
) -> Union[list[tool.Drawing.SheetWarningType], None]:
|
||||||
warnings = drawing.validate_sheet_files(sheet)
|
|
||||||
if warnings:
|
|
||||||
return warnings
|
|
||||||
|
|
||||||
titleblock_uri = drawing.get_document_uri(sheet, "TITLEBLOCK")
|
titleblock_uri = drawing.get_document_uri(sheet, "TITLEBLOCK")
|
||||||
assert titleblock_uri
|
assert titleblock_uri
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user