Tidy up of text command support
This commit is contained in:
parent
b4020f2cc8
commit
e0b9e29db9
|
@ -603,7 +603,8 @@ def process_linear_extrude(obj,h) :
|
||||||
mylinear.Base = newobj #obj
|
mylinear.Base = newobj #obj
|
||||||
mylinear.Dir = (0,0,h)
|
mylinear.Dir = (0,0,h)
|
||||||
mylinear.Placement=FreeCAD.Placement()
|
mylinear.Placement=FreeCAD.Placement()
|
||||||
mylinear.Solid = True
|
# V17 change to False mylinear.Solid = True
|
||||||
|
mylinear.Solid = False
|
||||||
if gui:
|
if gui:
|
||||||
newobj.ViewObject.hide()
|
newobj.ViewObject.hide()
|
||||||
return(mylinear)
|
return(mylinear)
|
||||||
|
@ -708,7 +709,10 @@ def processTextCmd(t):
|
||||||
import os
|
import os
|
||||||
from OpenSCADUtils import callopenscadstring
|
from OpenSCADUtils import callopenscadstring
|
||||||
tmpfilename = callopenscadstring(t,'dxf')
|
tmpfilename = callopenscadstring(t,'dxf')
|
||||||
obj=processDXF(os.path.splitext(tmpfilename)[0],"")
|
from OpenSCAD2Dgeom import importDXFface
|
||||||
|
face = importDXFface(tmpfilename,None,None)
|
||||||
|
obj=doc.addObject('Part::Feature','text')
|
||||||
|
obj.Shape=face
|
||||||
try:
|
try:
|
||||||
os.unlink(tmpfilename)
|
os.unlink(tmpfilename)
|
||||||
except OSError:
|
except OSError:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user