[Arch] fix invalid IFC export for annotations

* as reported here https://forum.freecadweb.org/viewtopic.php?f=39&t=40466&p=345286
* wrap IfcAxis2Placement3D in IfcLocalPlacement
This commit is contained in:
hlg
2019-11-13 18:30:14 +01:00
committed by Yorik van Havre
parent 962ad2d053
commit de0a0c4b92

View File

@@ -1097,6 +1097,7 @@ def export(exportList,filename,colors=None,preferences=None):
zvc = ifcbin.createIfcDirection((0.0,0.0,1.0))
ovc = ifcbin.createIfcCartesianPoint((0.0,0.0,0.0))
gpl = ifcbin.createIfcAxis2Placement3D(ovc,zvc,xvc)
placement = ifcbin.createIfcLocalPlacement(gpl)
if anno.isDerivedFrom("Part::Feature"):
reps = []
sh = anno.Shape.copy()
@@ -1162,7 +1163,7 @@ def export(exportList,filename,colors=None,preferences=None):
history,l,
'',
None,
gpl,
placement,
rep
)
annos[anno.Name] = ann