Skip to content

Commit

Permalink
Draft: Handle exception in DXF output
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jun 4, 2016
1 parent b18981f commit dad057c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Mod/Draft/Draft.py
Expand Up @@ -1697,7 +1697,12 @@ def getProj(vec):
direction = FreeCAD.Vector(0,0,-1)
if DraftVecUtils.isNull(direction):
direction = FreeCAD.Vector(0,0,-1)
result += Drawing.projectToDXF(obj.Shape,direction)
try:
d = Drawing.projectToDXF(obj.Shape,direction)
except:
print("Draft.getDXF: Unable to project ",obj.Label," to ",direction)
else:
result += d

else:
print("Draft.getDXF: Unsupported object: ",obj.Label)
Expand Down

0 comments on commit dad057c

Please sign in to comment.