Partial operation settings support for Surface op.
This commit is contained in:
@@ -319,9 +319,18 @@ class ObjectSurface(PathOp.ObjectOp):
|
||||
obj.OpStartDepth = d.start_depth
|
||||
obj.OpFinalDepth = d.final_depth
|
||||
|
||||
def SetupProperties():
|
||||
setup = []
|
||||
setup.append("Algorithm")
|
||||
setup.append("DropCutterDir")
|
||||
setup.append("BoundBox")
|
||||
setup.append("StepOver")
|
||||
setup.append("DepthOffset")
|
||||
return setup
|
||||
|
||||
def Create(name):
|
||||
def Create(name, obj = None):
|
||||
'''Create(name) ... Creates and returns a Surface operation.'''
|
||||
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
|
||||
if obj is None:
|
||||
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
|
||||
proxy = ObjectSurface(obj, name)
|
||||
return obj
|
||||
|
||||
@@ -65,7 +65,8 @@ Command = PathOpGui.SetupOperation('Surface',
|
||||
TaskPanelOpPage,
|
||||
'Path-3DSurface',
|
||||
QtCore.QT_TRANSLATE_NOOP("Surface", "3D Surface"),
|
||||
QtCore.QT_TRANSLATE_NOOP("Surface", "Create a 3D Surface Operation from a model"))
|
||||
QtCore.QT_TRANSLATE_NOOP("Surface", "Create a 3D Surface Operation from a model"),
|
||||
PathSurface.SetupProperties)
|
||||
|
||||
FreeCAD.Console.PrintLog("Loading PathSurfaceGui... done\n")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user