STK AviatorSend comments on this topic.
IAgAvtrCatalog Interface

Description

Interface used to access the Aviator catalog.

Public Properties

Public Property AircraftCategoryGet the aircraft category.
Public Property AirportCategoryGet the airport category.
Public Property NavaidCategoryGet the navaid category.
Public Property RunwayCategoryGet the runway category.
Public Property VTOLPointCategoryGet the vtol point category.
Public Property WaypointCategoryGet the waypoint category.

CoClasses that Implement IAgAvtrCatalog

Example

Set the aircraft used for the mission to an aircraft found in the Aviator catalog
[C#]
// Get the Aviator catalog
IAgAvtrCatalog catalog = propagator.AvtrCatalog;
// Get the aircraft category
IAgAvtrAircraftCategory category = catalog.AircraftCategory;
// Get the user aircraft models
IAgAvtrAircraftModels aircraftModels = category.AircraftModels;
// Get the basic fighter
IAgAvtrAircraft fighter = aircraftModels.GetAircraft("Basic Fighter");
// Get the mission
IAgAvtrMission mission = propagator.AvtrMission;
// Set the vehicle used for the mission
mission.Vehicle = fighter as IAgAvtrVehicle;
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);
}
Set the aircraft used for the mission to an aircraft found in the Aviator catalog
[Visual Basic .NET]
' Get the Aviator catalog
Dim catalog As IAgAvtrCatalog = propagator.AvtrCatalog
' Get the aircraft category
Dim category As IAgAvtrAircraftCategory = catalog.AircraftCategory
' Get the user aircraft models
Dim aircraftModels As IAgAvtrAircraftModels = category.AircraftModels
' Get the basic fighter
Dim fighter As IAgAvtrAircraft = aircraftModels.GetAircraft("Basic Fighter")
' Get the mission
Dim mission As IAgAvtrMission = propagator.AvtrMission
' Set the vehicle used for the mission
mission.Vehicle = TryCast(fighter, IAgAvtrVehicle)
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)

Set the aircraft used for the mission to an aircraft found in the Aviator catalog
[Python - STK API]
      # IAgAvtrPropagator propagator: Aviator Propagator object
# Get the Aviator catalog
catalog = propagator.AvtrCatalog
# Get the aircraft category
category = catalog.AircraftCategory
# Get the user aircraft models
aircraftModels = category.AircraftModels
# Get the basic fighter
fighter = aircraftModels.GetAircraft('Basic Fighter')
# Get the mission
mission = propagator.AvtrMission
# Set the vehicle used for the mission
mission.Vehicle = fighter

Set the aircraft used for the mission to an aircraft found in the Aviator catalog
[MATLAB]
% IAgAvtrPropagator propagator: Aviator Propagator object
% Get the Aviator catalog
catalog = propagator.AvtrCatalog;
% Get the aircraft category
category = catalog.AircraftCategory;
% Get the user aircraft models
aircraftModels = category.AircraftModels;
% Get the basic fighter
fighter = aircraftModels.GetAircraft("Basic Fighter");
% Get the mission
mission = propagator.AvtrMission;
% Set the vehicle used for the mission
mission.Vehicle = fighter;


        
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.