STK ObjectsSend comments on this topic.
GetAccess Method (IAgStkObject)
See Also
ObjectPath
The Object path to compute access to.
Windows





Windows & Linux

Description

Returns an IAgStkAccess object associated with this STK object and another STK object specified using its path. The path can be fully-qualified or truncated. See remarks section for more info.

Syntax

[Visual Basic .NET]
Public Function GetAccess( _
    ByVal ObjectPath As String _
) As IAgStkAccess
[C#]
public IAgStkAccess GetAccess(
    string ObjectPath
);
[Managed C++]
public: IAgStkAccess^ GetAccess(
    String __gc ^ ObjectPath
);
[Unmanaged C++]
public: HRESULT GetAccess(
    BSTR ObjectPath,
    IAgStkAccess ** ppIAgStkAccess
);
[Java]
public IAgStkAccess getAccess(
    String ObjectPath
);
[Python - STK API ]
def GetAccess(self, ObjectPath:str) -> "IAgStkAccess":

Parameters

ObjectPath
The Object path to compute access to.

Remarks

If the access from this object (“A”) to the other object (“B”) exists, returns the existing IAgStkAccess object for that access.
If the access from A to B does not exist, there are two cases:
  1. If the access from B to A exists and (1) is not already computed or (2) is computed and has light time delay <= 1.0 sec, returns existing IAgStkAccess object for B to A.
  2. Otherwise, returns a new IAgStkAccess object for A to B that has not yet been computed.

See Also

Example

Compute an access between two STK Objects (using object path)
[C#]
// Get access by object path
IAgStkAccess access = stkObject.GetAccess("Facility/fac1");

// Compute access
access.ComputeAccess();
Compute an access between two STK Objects (using object path)
[Visual Basic .NET]
' Get access by object path
Dim access As IAgStkAccess = stkObject.GetAccess("Facility/fac1")

' Compute access
access.ComputeAccess()
© 2024 Analytical Graphics, Inc. All Rights Reserved.