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.Dir = (0,0,h)
|
||||
mylinear.Placement=FreeCAD.Placement()
|
||||
mylinear.Solid = True
|
||||
# V17 change to False mylinear.Solid = True
|
||||
mylinear.Solid = False
|
||||
if gui:
|
||||
newobj.ViewObject.hide()
|
||||
return(mylinear)
|
||||
|
@ -708,7 +709,10 @@ def processTextCmd(t):
|
|||
import os
|
||||
from OpenSCADUtils import callopenscadstring
|
||||
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:
|
||||
os.unlink(tmpfilename)
|
||||
except OSError:
|
||||
|
|
Loading…
Reference in New Issue
Block a user