예제 #1
0
def processTextCmd(t):
    import os
    from OpenSCADUtils import callopenscadstring
    tmpfilename = callopenscadstring(t,'dxf')
    obj=processDXF(os.path.splitext(tmpfilename)[0],"")
    try:
        os.unlink(tmpfilename)
    except OSError:
        pass
    return(obj)
예제 #2
0
파일: importCSG.py 프로젝트: ohhmm/FreeCAD
def processTextCmd(t):
    import os
    from OpenSCADUtils import callopenscadstring
    tmpfilename = callopenscadstring(t, 'dxf')
    obj = processDXF(os.path.splitext(tmpfilename)[0], "")
    try:
        os.unlink(tmpfilename)
    except OSError:
        pass
    return (obj)
예제 #3
0
파일: importCSG.py 프로젝트: hodizu/FreeCAD
def processTextCmd(t):
    from OpenSCADUtils import callopenscadstring
    tmpfilename = callopenscadstring(t,'dxf')
    from OpenSCAD2Dgeom import importDXFface 
    face = importDXFface(tmpfilename,None,None)
    obj=doc.addObject('Part::Feature','text')
    obj.Shape=face
    try:
        os.unlink(tmpfilename)
    except OSError:
        pass
    return(obj)
예제 #4
0
파일: importCSG.py 프로젝트: itain/FreeCAD
def processTextCmd(t):
    import os
    from OpenSCADUtils import callopenscadstring
    tmpfilename = callopenscadstring(t,'dxf')
    from OpenSCAD2Dgeom import importDXFface 
    face = importDXFface(tmpfilename,None,None)
    obj=doc.addObject('Part::Feature','text')
    obj.Shape=face
    try:
        os.unlink(tmpfilename)
    except OSError:
        pass
    return(obj)