proxy to obj.Proxy partial conversion

This commit is contained in:
Russell Johnson
2019-06-18 19:59:57 -05:00
parent 2ed1f19b42
commit 7d8f084ae9
4 changed files with 5 additions and 5 deletions

View File

@@ -536,5 +536,5 @@ def Create(name, obj = None):
'''Create(name) ... Creates and returns a Adaptive operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = PathAdaptive(obj,name)
obj.Proxy = PathAdaptive(obj,name)
return obj

View File

@@ -135,7 +135,7 @@ def Create(name, obj = None):
'''Create(name) ... Creates and returns a Drilling operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectDrilling(obj, name)
obj.Proxy = ObjectDrilling(obj, name)
if obj.Proxy:
proxy.findAllHoles(obj)
obj.Proxy.findAllHoles(obj)
return obj

View File

@@ -409,6 +409,6 @@ def Create(name, base, templateFile = None):
else:
models = base
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
proxy = ObjectJob(obj, models, templateFile)
obj.Proxy = ObjectJob(obj, models, templateFile)
return obj

View File

@@ -803,5 +803,5 @@ def Create(name, obj=None):
'''Create(name) ... Creates and returns a Pocket operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject('Path::FeaturePython', name)
obj.proxy = ObjectPocket(obj, name)
obj.Proxy = ObjectPocket(obj, name)
return obj