mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-25 04:44:37 +00:00
Fix #2735.
This commit is contained in:
@@ -75,8 +75,14 @@ def update_diagram_scale(self, context):
|
|||||||
if "|" not in scale:
|
if "|" not in scale:
|
||||||
return
|
return
|
||||||
human_scale, scale = scale.split("|")
|
human_scale, scale = scale.split("|")
|
||||||
element = tool.Ifc.get_entity(self.id_data)
|
try:
|
||||||
if not element:
|
element = (
|
||||||
|
tool.Ifc.get()
|
||||||
|
.by_id(self.id_data.BIMMeshProperties.ifc_definition_id)
|
||||||
|
.OfProductRepresentation[0]
|
||||||
|
.ShapeOfProduct[0]
|
||||||
|
)
|
||||||
|
except:
|
||||||
return
|
return
|
||||||
pset = ifcopenshell.util.element.get_psets(element).get("EPset_Drawing")
|
pset = ifcopenshell.util.element.get_psets(element).get("EPset_Drawing")
|
||||||
if pset:
|
if pset:
|
||||||
|
|||||||
Reference in New Issue
Block a user