To reproduce
- open or import the attached file with mode "SVG as geometry"
- switch to Draft workbench
- select the imported geometry
- apply DraftToSketch
The path is not converted, error message:
Code: Select all
00:15:02 Traceback (most recent call last):
File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft/draftutils/todo.py", line 167, in doTasks
Gui.doCommand(string)
File "<string>", line 1, in <module>
File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft/draftmake/make_sketch.py", line 93, in make_sketch
if not DraftGeomUtils.isPlanar(shape):
File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft/draftgeoutils/geometry.py", line 280, in isPlanar
n = getNormal(shape)
File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft/draftgeoutils/geometry.py", line 235, in getNormal
n = getSplineNormal(shape.Edges[0])
File "/Users/cb/Desktop/FreeCAD.app/Contents/Resources/Mod/Draft/draftgeoutils/geometry.py", line 209, in getSplineNormal
n.normalize()
Base.FreeCADError: Cannot normalize null vector
00:15:02 ToDo.doTasks, Unexpected error:
<class 'Base.FreeCADError'>
in ['obj0 = Draft.makeSketch(FreeCAD.ActiveDocument.path23, autoconstraints=True)', 'FreeCAD.ActiveDocument.recompute()']
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.22611 (Git)
Build type: Release
Branch: master
Hash: 7eeec7a5990cc786723225ca8de16ca3186545b3
Python version: 3.8.5
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: C/Default (C)