STK AviatorSend comments on this topic.
IAgAvtrSiteRunway Interface

Description

Interface used to access the options for a Runway site type.

Public Methods

Public Method AddToCatalogAdd the runway to the catalog.
Public Method CopyFromCatalogCopy the information from the runway stored in the catalog.
Public Method GetAsSiteGet the site interface.

Public Properties

Public Property AltitudeGets or sets the runway altitude.
Public Property AltitudeRefGets or sets the altitude reference for the runway.
Public Property HighEndHeadingGets or sets the high end heading of the runway.
Public Property IsMagneticOpt whether to use a magnetic heading for the runway heading.
Public Property LatitudeGets or sets the runway latitude.
Public Property LengthGets or sets the length of the runway.
Public Property LongitudeGets or sets the runway longitude.
Public Property LowEndHeadingGets or sets the low end heading of the runway.

Interfaces

Implemented Interface
IAgAvtrSite

CoClasses that Implement IAgAvtrSiteRunway

Example

Configure a runway site
[C#]
// Set the latitude, longitude, and altitude
runway.Latitude = 41;
runway.Longitude = 77;
runway.Altitude = 5;

// Set the altitude reference
runway.AltitudeRef = AgEAvtrAGLMSL.eAltMSL;

// Set the heading
runway.HighEndHeading = 195;
// Opt to use true heading
runway.IsMagnetic = false;

// Set the length of the runway
runway.Length = 5;

// Rename the runway
runway.GetAsSite().Name = "New User Runway";
// Add the runway to the catalog to use it for next time
runway.AddToCatalog(true);
Configure a runway site from a runway in the Aviator catalog
[C#]
// Get the source of user runways
IAgAvtrUserRunwaySource userRunways = catalog.RunwayCategory.UserRunways;
// Check that the runway exists in the catalog
if (userRunways.GetAsCatalogSource().Contains("New User Runway"))
{
    // If so, get the user runway with the given name
    IAgAvtrUserRunway runwayFromCatalog = userRunways.GetUserRunway("New User Runway");
    // Copy the parameters of that runway
    runway.CopyFromCatalog(runwayFromCatalog as IAgAvtrCatalogRunway);
}
Configure a runway site
[Visual Basic .NET]
' Set the latitude, longitude, and altitude
runway.Latitude = 41
runway.Longitude = 77
runway.Altitude = 5

' Set the altitude reference
runway.AltitudeRef = AgEAvtrAGLMSL.eAltMSL

' Set the heading
runway.HighEndHeading = 195
' Opt to use true heading
runway.IsMagnetic = False

' Set the length of the runway
runway.Length = 5

' Rename the runway
runway.GetAsSite().Name = "New User Runway"
' Add the runway to the catalog to use it for next time
runway.AddToCatalog(True)
Configure a runway site from a runway in the Aviator catalog
[Visual Basic .NET]
' Get the source of user runways
Dim userRunways As IAgAvtrUserRunwaySource = catalog.RunwayCategory.UserRunways
' Check that the runway exists in the catalog
If userRunways.GetAsCatalogSource().Contains("New User Runway") Then
	' If so, get the user runway with the given name
	Dim runwayFromCatalog As IAgAvtrUserRunway = userRunways.GetUserRunway("New User Runway")
	' Copy the parameters of that runway
	runway.CopyFromCatalog(TryCast(runwayFromCatalog, IAgAvtrCatalogRunway))
End If
Configure a runway site from a runway in the Aviator catalog
[Python - STK API]
      # IAgAvtrSiteRunway runway: Runway object
# IAgAvtrCatalog catalog: Aviator catalog object
# Get the source of user runways
userRunways = catalog.RunwayCategory.UserRunways
# Check that the runway exists in the catalog
if userRunways.Contains('New User Runway') is True:
    # If so, get the user runway with the given name
    runwayFromCatalog = userRunways.GetUserRunway('New User Runway')
    # Copy the parameters of that runway
    runway.CopyFromCatalog(runwayFromCatalog)

Configure a runway site
[Python - STK API]
      # IAgAvtrSiteRunway runway: Runway object
# Set the latitude, longitude, and altitude
runway.Latitude = 41
runway.Longitude = 77
runway.Altitude = 5

# Set the altitude reference
runway.AltitudeRef = AgEAvtrAGLMSL.eAltMSL

# Set the heading
runway.HighEndHeading = 195
# Opt to use true heading
runway.IsMagnetic = False

# Set the length of the runway
runway.Length = 5

# Rename the runway
runway.Name = 'New User Runway'
# Add the runway to the catalog to use it for next time
runway.AddToCatalog(1)

Configure a runway site
[MATLAB]
% IAgAvtrSiteRunway runway: Runway object
% Set the latitude, longitude, and altitude
runway.Latitude = 41;
runway.Longitude = 77;
runway.Altitude = 5;

% Set the altitude reference
runway.AltitudeRef = 'eAltMSL';

% Set the heading
runway.HighEndHeading = 195;
% Opt to use true heading
runway.IsMagnetic = false;

% Set the length of the runway
runway.Length = 5;

% Rename the runway
runway.Name = 'New User Runway';
% Add the runway to the catalog to use it for next time
runway.AddToCatalog(1);


        
Configure a runway site from a runway in the Aviator catalog
[MATLAB]
% IAgAvtrSiteRunway runway: Runway object
% IAgAvtrCatalog catalog: Aviator catalog object
% Get the source of user runways
userRunways = catalog.RunwayCategory.UserRunways;
% Check that the runway exists in the catalog
if (userRunways.Contains('New User Runway'))
    % If so, get the user runway with the given name
    runwayFromCatalog = userRunways.GetUserRunway('New User Runway');
    % Copy the parameters of that runway
    runway.CopyFromCatalog(runwayFromCatalog);
end


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.