issue 0001469: OpenSCAD import more than one dxf layer

with the same name

remove all imported dxf geometry
change dxf import object naming to avoid conflicts with group names
This commit is contained in:
Sebastian Hoogen
2014-03-12 13:32:07 +01:00
committed by wmayer
parent 8b901df068
commit 9d93ad760e
2 changed files with 20 additions and 24 deletions

View File

@@ -710,12 +710,10 @@ def processDXF(fname,layer):
if printverbose: print "PathName : "+pathName
dxfname = fname+'.dxf'
filename = os.path.join(pathName,dxfname)
shortname = os.path.split(fname)[1]
if printverbose: print "DXF Full path : "+filename
face = importDXFface(filename,layer,doc)
#obj=doc.addObject("Part::FeaturePython",'import_dxf_%s_%s'%(objname,layera))
obj=doc.addObject('Part::Feature',layer or "dxf")
#ImportObject(obj,groupobj[0]) #This object is not mutable from the GUI
#ViewProviderTree(obj.ViewObject)
obj=doc.addObject('Part::Feature','dxf_%s_%s' % (shortname,layer or "all"))
obj.Shape=face
if printverbose: print "DXF Diagnostics"
if printverbose: print obj.Shape.ShapeType