[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user