STK Vector Geometry ToolSend comments on this topic.
HasCyclicDependency Method (IAgCrdnVectorRefTo)
See Also
Vector
Specify a valid vector.
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 Vector As IAgCrdnVector _
) As Boolean
[C#]
public bool HasCyclicDependency(
    IAgCrdnVector Vector
);
[Managed C++]
public: bool HasCyclicDependency(
    IAgCrdnVector ^ Vector
);
[Unmanaged C++]
public: HRESULT HasCyclicDependency(
    IAgCrdnVector * Vector,
    VARIANT_BOOL * pRetVal
);
[Java]
public bool hasCyclicDependency(
    IAgCrdnVector Vector
);
[Python - STK API ]
def HasCyclicDependency(self, Vector:"IAgCrdnVector") -> bool:

Parameters

Vector
Specify a valid vector.

See Also

Example

Check whether the reference vector has a cyclic dependency on another vector.
[C#]
//Check if the reference vector has a cyclic dependency on another vector.
if (vectorRefTo.HasCyclicDependency(vector))
{
    Console.WriteLine("The vector {0} has a cyclic dependency on vector {1}.", ((IAgCrdn)vectorRefTo.GetVector()).Name, ((IAgCrdn)vector).Name);
}
Check whether the reference vector has a cyclic dependency on another vector.
[Visual Basic .NET]
'Check if the reference vector has a cyclic dependency on another vector.
If vectorRefTo.HasCyclicDependency(vector) Then
	Console.WriteLine("The vector {0} has a cyclic dependency on vector {1}.", DirectCast(vectorRefTo.GetVector(), IAgCrdn).Name, DirectCast(vector, IAgCrdn).Name)
End If
© 2024 Analytical Graphics, Inc. All Rights Reserved.