AGI STK VGT 11Send comments on this topic.
HasCyclicDependency Method (IAgCrdnPointRefTo)
See Also  Example
Point
Specify a valid VGT point object.
Windows






Windows & Linux

Description

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

Syntax

[Visual Basic .NET]
Public Function HasCyclicDependency( _
   ByVal Point As IAgCrdnPoint _
) As Boolean
[C#]
public bool HasCyclicDependency(
   IAgCrdnPoint Point
);
[Managed C++]
public: bool HasCyclicDependency(
   IAgCrdnPoint ^ Point
);
[Java]
public bool hasCyclicDependency(
   IAgCrdnPoint Point
);
[Unmanaged C++]
public: HRESULT HasCyclicDependency(
   IAgCrdnPoint * Point,
   VARIANT_BOOL * ReturnValue
);

Parameters

Point
Specify a valid VGT point object.

Example

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

    Console.WriteLine("The point {0} has a cyclic dependency on point {1}.", ((IAgCrdn)pointRefTo.GetPoint()).Name, ((IAgCrdn)point).Name); 

 

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

See Also

© 2018 Analytical Graphics, Inc. All Rights Reserved.