Draft: fixed issues with DXF import when used by OpenSCAD WB

This commit is contained in:
Yorik van Havre
2016-08-16 16:43:47 -03:00
parent c4ad533d69
commit 4bca3b694d

View File

@@ -1009,6 +1009,9 @@ def addToBlock(obj,layer):
def processdxf(document,filename,getShapes=False):
"this does the translation of the dxf contents into FreeCAD Part objects"
global drawing # for debugging - so drawing is still accessible to python after the script ran
if not dxfReader:
getDXFlibs()
readPreferences()
FreeCAD.Console.PrintMessage("opening "+filename+"...\n")
drawing = dxfReader.readDXF(filename)
global layers