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

Parameters

System
Specify a valid system object.

See Also

Example

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