AGI STK VGT 11 Send comments on this topic.
HasCyclicDependency Method (IAgCrdnAxesRefTo)
See Also  Example
Axes
Specify a valid axes object.





Description

Tests whether the input component and the target component form a cyclic dependency.

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
   ByVal Axes As IAgCrdnAxes _
) As Boolean

[C#]
public bool HasCyclicDependency(
IAgCrdnAxes Axes
);

[Managed C++]
public: bool HasCyclicDependency(
IAgCrdnAxes ^ Axes
);

[Java]
public bool hasCyclicDependency(
IAgCrdnAxes Axes
);

[Unmanaged C++]
public: HRESULT HasCyclicDependency(
IAgCrdnAxes * Axes,
VARIANT_BOOL * ReturnValue
);

Parameters

Axes
Specify a valid axes object.

Example

Check whether the reference axes has a cyclic dependency on another axes.
[C#] Copy Code
//Check if the reference axes has a cyclic dependency on another axes. 
if (axesRefTo.HasCyclicDependency(axes)) 

    Console.WriteLine("The axes {0} has a cyclic dependency on axes {1}.", ((IAgCrdn)axesRefTo.GetAxes()).Name, ((IAgCrdn)axes).Name); 

 

Check whether the reference axes has a cyclic dependency on another axes.
[Visual Basic .NET] Copy Code
'Check if the reference axes has a cyclic dependency on another axes.
If axesRefTo.HasCyclicDependency(axes) Then
    Console.WriteLine("The axes {0} has a cyclic dependency on axes {1}.", DirectCast(axesRefTo.GetAxes(), IAgCrdn).Name, DirectCast(axes, IAgCrdn).Name)
End If

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1