Path: Allow parent job assignment

Modifications focus on allowing the creation of operations to include direct provision of parent job.
Path: Remove `useGui` implementation
This commit is contained in:
Russell Johnson
2021-08-12 22:26:57 -05:00
parent 2a900b1850
commit cfca2a790a
22 changed files with 53 additions and 49 deletions

View File

@@ -1301,9 +1301,9 @@ def SetupProperties():
return setup
def Create(name, obj=None):
def Create(name, obj=None, parentJob=None):
'''Create(name) ... Creates and returns a Profile based on faces operation.'''
if obj is None:
obj = FreeCAD.ActiveDocument.addObject("Path::FeaturePython", name)
obj.Proxy = ObjectProfile(obj, name)
obj.Proxy = ObjectProfile(obj, name, parentJob)
return obj