From 962904a96fea2571ea5ec786673ba082dfc6bb91 Mon Sep 17 00:00:00 2001 From: hlg Date: Wed, 13 Nov 2019 18:30:14 +0100 Subject: [PATCH] [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 --- src/Mod/Arch/exportIFC.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Mod/Arch/exportIFC.py b/src/Mod/Arch/exportIFC.py index b40eab758e..9c9b4767d2 100644 --- a/src/Mod/Arch/exportIFC.py +++ b/src/Mod/Arch/exportIFC.py @@ -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