AircraftModels#
- class ansys.stk.core.stkobjects.aviator.AircraftModels#
Bases:
ICatalogSource
Class defining the User Aircraft Models in the Aviator Catalog.
Overview#
Get the aircraft with the given name. |
|
Create a new aircraft with the given name. |
|
Get the catalog source interface for this object. |
Examples#
Set the aircraft used for the mission to an aircraft found in the Aviator catalog
# AviatorPropagator propagator: Aviator Propagator object
# Get the Aviator catalog
catalog = propagator.aviator_catalog
# Get the aircraft category
category = catalog.aircraft_category
# Get the user aircraft models
aircraftModels = category.aircraft_models
# Get the basic fighter
fighter = aircraftModels.get_aircraft("Basic Fighter")
# Get the mission
mission = propagator.aviator_mission
# Set the vehicle used for the mission
mission.vehicle = fighter
Import detail#
from ansys.stk.core.stkobjects.aviator import AircraftModels
Method detail#
- AircraftModels.get_aircraft(self, aircraft_name: str) AircraftModel #
Get the aircraft with the given name.
- Parameters:
aircraft_name :
str
- Returns:
AircraftModel
- AircraftModels.add_aircraft(self, aircraft_name: str) AircraftModel #
Create a new aircraft with the given name.
- Parameters:
aircraft_name :
str
- Returns:
AircraftModel
- AircraftModels.get_as_catalog_source(self) ICatalogSource #
Get the catalog source interface for this object.
- Returns:
ICatalogSource