BIM: NativeIFC 2D support - small fixes

This commit is contained in:
Yorik van Havre
2024-10-17 16:07:21 +02:00
committed by Yorik van Havre
parent 94ccb830ca
commit fcc4eb1370
3 changed files with 9 additions and 2 deletions

View File

@@ -214,7 +214,7 @@ class ifc_object:
else:
print("DEBUG: unknown dimension curve type:",sub)
elif attribute in ["DisplayLength","DisplayHeight","Depth"]:
l = w = h = 1000
l = w = h = 1000.0
if obj.ViewObject:
if obj.ViewObject.DisplayLength.Value:
l = ifc_export.get_scaled_value(obj.ViewObject.DisplayLength.Value, ifcfile)