mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-24 10:06:57 +00:00
Fix #6201. Regression in creating drawings due to typing in 67bac441ad
This commit is contained in:
@@ -1202,8 +1202,8 @@ class Drawing(bonsai.core.tool.Drawing):
|
|||||||
def get_default_drawing_resource_path(cls, resource: str) -> Union[str, None]:
|
def get_default_drawing_resource_path(cls, resource: str) -> Union[str, None]:
|
||||||
project = tool.Ifc.get().by_type("IfcProject")[0]
|
project = tool.Ifc.get().by_type("IfcProject")[0]
|
||||||
props = tool.Drawing.get_document_props()
|
props = tool.Drawing.get_document_props()
|
||||||
resource_path = (
|
resource_path = ifcopenshell.util.element.get_pset(project, "BBIM_Documentation", f"{resource}Path") or getattr(
|
||||||
ifcopenshell.util.element.get_pset(project, "BBIM_Documentation", f"{resource}Path") or props.resource_path
|
props, f"{resource.lower()}_path"
|
||||||
)
|
)
|
||||||
if resource_path:
|
if resource_path:
|
||||||
return resource_path.replace("\\", "/")
|
return resource_path.replace("\\", "/")
|
||||||
|
|||||||
Reference in New Issue
Block a user