Arch: Fixed IFC export of dimension text

This commit is contained in:
Yorik van Havre
2022-03-24 09:40:28 +01:00
parent 1f09430fe3
commit 6de5aa1220

View File

@@ -1374,10 +1374,9 @@ def export(exportList, filename, colors=None, preferences=None):
l = FreeCAD.Vector(vp.tbase).multiply(preferences['SCALE_FACTOR'])
pos = ifcbin.createIfcCartesianPoint((l.x,l.y,l.z))
tpl = ifcbin.createIfcAxis2Placement3D(pos,None,None)
s = ";".join(vp.string)
if six.PY2:
s = s.encode("utf8")
txt = ifcfile.createIfcTextLiteral(s,tpl,"LEFT")
txt = ifcfile.createIfcTextLiteral(vp.string,tpl,"LEFT")
reps.append(txt)
else:
print("Unable to handle object",anno.Label)