IMcEngineParentOfOperator Method |
![]() |
Namespace: MediaCy.IQL.Engine
Function ParentOfOperator ( Operator As Object ) As Object
'Example, Determine if an operator has a parent (i.e. is not a global operator) Function DoesOperatorHaveParent(myOperator As Object) As Boolean Dim myParent As Object Set myParent = ParentOfOperator(myOperator) DoesOperatorHaveParent = Not myParent Is Nothing If DoesOperatorHaveParent Then Debug.Print ThisApplication.McObject(myOperator).Name & " is a child of " & ThisApplication.McObject(myParent).Name Else Debug.Print ThisApplication.McObject(myOperator).Name & " is global (has no parent)." End If End Function Sub TestParentOfOperator() Debug.Print DoesOperatorHaveParent(ThisApplication.ActiveImage.LineFeatures.Profiles) Debug.Print DoesOperatorHaveParent(ThisApplication.Engine) 'Engine has no parent End Sub