Added operation setting support to profile ops.

This commit is contained in:
Markus Lampert
2018-08-25 19:14:19 -07:00
parent 74d3bf4856
commit 0824066c59
7 changed files with 37 additions and 9 deletions

View File

@@ -108,9 +108,13 @@ class ObjectContour(PathProfileBase.ObjectProfile):
obj.OpStartDepth = obj.OpStockZMax
obj.OpFinalDepth = obj.OpStockZMin
def SetupProperties():
return [p for p in PathProfileBase.SetupProperties() if p != 'Side']
def Create(name):
def Create(name, obj=None):
'''Create(name) ... Creates and returns a Contour operation.'''
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectContour(obj, name)
return obj