Arch: Fixed IFC import/export of dimensions

This commit is contained in:
Yorik van Havre
2022-04-06 11:35:18 +02:00
parent d41395bbd1
commit 002ba58bad
3 changed files with 15 additions and 8 deletions

View File

@@ -860,11 +860,12 @@ def get2DShape(representation,scaling=1000):
elif item.is_a("IfcTextLiteral"):
pl = getPlacement(item.Placement, scaling)
if pl:
t = Draft.make_text(item.Literal.split(";"), pl.Base)
t = Draft.make_text(item.Literal.split(";"), pl)
if FreeCAD.GuiUp:
if item.Path == "RIGHT":
t.ViewObject.Justification = "Right"
return [] # TODO dirty hack... Object creation should not be done here
# do not return because there might be more than one representation
#return [] # TODO dirty hack... Object creation should not be done here
elif representation.is_a() in ["IfcPolyline","IfcCircle","IfcTrimmedCurve","IfcRectangleProfileDef"]:
result = getCurveSet(representation)
return result