proxy to obj.Proxy partial conversion
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user