mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-27 02:31:09 +00:00
Fix missing ifc_file definition in 471bd34
This commit is contained in:
@@ -223,6 +223,7 @@ class Drawing(bonsai.core.tool.Drawing):
|
|||||||
def exclude_annotation_from_drawing(
|
def exclude_annotation_from_drawing(
|
||||||
cls, element: ifcopenshell.entity_instance, drawing: ifcopenshell.entity_instance
|
cls, element: ifcopenshell.entity_instance, drawing: ifcopenshell.entity_instance
|
||||||
) -> None:
|
) -> None:
|
||||||
|
ifc_file = tool.Ifc.get()
|
||||||
pset = tool.Pset.get_element_pset(drawing, "EPset_Drawing")
|
pset = tool.Pset.get_element_pset(drawing, "EPset_Drawing")
|
||||||
if not pset:
|
if not pset:
|
||||||
pset = ifcopenshell.api.pset.add_pset(ifc_file, product=drawing, name="EPset_Drawing")
|
pset = ifcopenshell.api.pset.add_pset(ifc_file, product=drawing, name="EPset_Drawing")
|
||||||
|
|||||||
Reference in New Issue
Block a user