AGI STK VGT 11 Send comments on this topic.
HasCyclicDependency Method (IAgCrdnPlaneRefTo)
See Also  Example
Plane
Specify a valid plane.





Description

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

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
   ByVal Plane As IAgCrdnPlane _
) As Boolean

[C#]
public bool HasCyclicDependency(
IAgCrdnPlane Plane
);

[Managed C++]
public: bool HasCyclicDependency(
IAgCrdnPlane ^ Plane
);

[Java]
public bool hasCyclicDependency(
IAgCrdnPlane Plane
);

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

Parameters

Plane
Specify a valid plane.

Example

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

    Console.WriteLine("The plane {0} has a cyclic dependency on plane {1}.", ((IAgCrdn)planeRefTo.GetPlane()).Name, ((IAgCrdn)plane).Name); 

 

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

See Also

© 2016 All Rights Reserved.

STK Programming Interface 11.0.1