STK AviatorSend comments on this topic.
IAgAvtrPerformanceModelOptions Interface

Description

Interface used to change the active performance model in a phase for a given model type.

Public Methods

Public Method CopyFromCatalogCreate a copy of the performance model in the catalog with the given name.
Public Method CreateNewCreate a new performance model of the given type.
Public Method DeleteDelete the performance model.
Public Method LinkToCatalogLink to the performance model in the catalog with the given name.
Public Method RenameRename the performance model.

Public Properties

Public Property IsLinkedToCatalogGet whether the performance model is linked to the catalog.
Public Property NameGet the name of the performance model.
Public Property PropertiesGet the properties of the performance model.

CoClasses that Implement IAgAvtrPerformanceModelOptions

Example

Configure the performance models to be used in the phase
[C#]
// Get the acceleration performance model used for the current phase
IAgAvtrPerformanceModelOptions acceleration = phase.GetPerformanceModelByType("Acceleration");
// Check if it is linked to the catalog
bool isLinkedToCatalog = acceleration.IsLinkedToCatalog;
// Use the performance model in the catalog named "Built-In Model"
acceleration.LinkToCatalog("Built-In Model");

// Get the VTOL performance model
IAgAvtrPerformanceModelOptions vtol = phase.GetPerformanceModelByType("VTOL");
// Create a new vtol model of type AGI VTOL Model. Note that this new model does not exist in the catalog and only exists in the phase.
vtol.CreateNew("AGI VTOL Model");
// Rename the performance model
vtol.Rename("Temporary VTOL Model");
Configure the performance models to be used in the phase
[Visual Basic .NET]
' Get the acceleration performance model used for the current phase
Dim acceleration As IAgAvtrPerformanceModelOptions = phase.GetPerformanceModelByType("Acceleration")
' Check if it is linked to the catalog
Dim isLinkedToCatalog As Boolean = acceleration.IsLinkedToCatalog
' Use the performance model in the catalog named "Built-In Model"
acceleration.LinkToCatalog("Built-In Model")

' Get the VTOL performance model
Dim vtol As IAgAvtrPerformanceModelOptions = phase.GetPerformanceModelByType("VTOL")
' Create a new vtol model of type AGI VTOL Model. Note that this new model does not exist in the catalog and only exists in the phase.
vtol.CreateNew("AGI VTOL Model")
' Rename the performance model
vtol.Rename("Temporary VTOL Model")
Configure the performance models to be used in the phase
[Python - STK API]
      # IAgAvtrPhase phase: Phase object
# Get the acceleration performance model used for the current phase
acceleration = phase.GetPerformanceModelByType('Acceleration')
# Check if it is linked to the catalog
isLinkedToCatalog = acceleration.IsLinkedToCatalog
# Use the performance model in the catalog named "Built-In Model"
acceleration.LinkToCatalog('Built-In Model')

# Get the VTOL performance model
vtol = phase.GetPerformanceModelByType('VTOL')
# Create a new vtol model of type AGI VTOL Model. Note that this new model does not exist in the catalog and only exists in the phase.
vtol.CreateNew('AGI VTOL Model')
# Rename the performance model
vtol.Rename('Temporary VTOL Model')

Configure the performance models to be used in the phase
[MATLAB]
% IAgAvtrPhase phase: Phase object
% Get the acceleration performance model used for the current phase
acceleration = phase.GetPerformanceModelByType('Acceleration');
% Check if it is linked to the catalog
isLinkedToCatalog = acceleration.IsLinkedToCatalog;
% Use the performance model in the catalog named "Built-In Model"
acceleration.LinkToCatalog('Built-In Model');

% Get the VTOL performance model
vtol = phase.GetPerformanceModelByType('VTOL');
% Create a new vtol model of type AGI VTOL Model. Note that this new model does not exist in the catalog and only exists in the phase.
vtol.CreateNew('AGI VTOL Model');
% Rename the performance model
vtol.Rename('Temporary VTOL Model');


        
© 2024 Analytical Graphics, Inc. All Rights Reserved.