Arch: bugfixes in IFC exporter

This commit is contained in:
Yorik van Havre
2018-07-26 19:23:48 -03:00
parent c28f95d9f5
commit e45a3674f0
4 changed files with 18 additions and 3 deletions

View File

@@ -583,7 +583,7 @@ class Component:
if hasattr(obj.Axis.Proxy,"getPoints"):
points = obj.Axis.Proxy.getPoints(obj.Axis)
if not points:
if obj.Axis.isDerivedFrom("Part.Feature"):
if obj.Axis.isDerivedFrom("Part::Feature"):
points = [v.Point for v in obj.Axis.Shape.Vertexes]
if points:
shps = []

View File

@@ -2309,6 +2309,10 @@ def getRepresentation(ifcfile,context,obj,forcebrep=False,subtraction=False,tess
# base shape not yet created
tostore = k
# unhandled case: object is duplicated because of Axis
if obj.isDerivedFrom("Part::Feature") and (len(obj.Shape.Solids) > 1) and hasattr(obj,"Axis") and obj.Axis:
forcebrep = True
if (not shapes) and (not forcebrep):
profile = None
ev = FreeCAD.Vector()