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 b20dd3f7ab
commit 20d6c93fd5

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