UserRunwaySource#
- class ansys.stk.core.stkobjects.aviator.UserRunwaySource#
Bases:
ICatalogSource
Class defining the user runways in the Aviator catalog.
Overview#
Get the user runway with the given name. |
|
Create a new user runway with the given name. |
|
Get the catalog source interface for this object. |
Examples#
Configure a runway site from a runway in the Aviator catalog
# SiteRunway runway: Runway object
# Catalog catalog: Aviator catalog object
# Get the source of user runways
userRunways = catalog.runway_category.user_runways
# 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.get_user_runway("New User Runway")
# Copy the parameters of that runway
runway.copy_from_catalog(runwayFromCatalog)
Import detail#
from ansys.stk.core.stkobjects.aviator import UserRunwaySource
Method detail#
- UserRunwaySource.get_user_runway(self, name: str) UserRunway #
Get the user runway with the given name.
- Parameters:
name :
str
- Returns:
UserRunway
- UserRunwaySource.add_user_runway(self, name: str) UserRunway #
Create a new user runway with the given name.
- Parameters:
name :
str
- Returns:
UserRunway
- UserRunwaySource.get_as_catalog_source(self) ICatalogSource #
Get the catalog source interface for this object.
- Returns:
ICatalogSource