Description | Example | Return message | Group

TE_AssociatedObject

Import an Associated Object data file for a known ownship

Syntax

TE_AssociatedObject <ScenarioPath> Add {<Parameters>}

TE_AssociatedObject <ScenarioPath> Delete|Reload Ownship "<OwnshipName>" SourcePath "<FilePath>"

Related commands

Description

The TETK Plugin must be installed in order to use this command.

The TE_AssociatedObject command will import an Associated Object data file for a known ownship.

A vehicle of the specified type, default of aircraft, will be created in STK. This vehicle will be the "target" for the specified ownship. The Associated Object does not appear in the TETK Flight analysis tool (FAT). If you already have a vehicle created and configured in STK, then you can use the keyword AttachTo to have the TE_AssociatedObject command apply the data file to that vehicle.

Parameters can be entered in any order.

Use the following format to import an Associated Object data file.

TE_AssociatedObject <ScenarioPath> Add File "<FileName>" Name "<DisplayName>" Ownship "<OwnshipName>" [ObjectType "<ObjectTypeName>"] [Model "<ModelPath>"]

The following table describes the parameters for this TE_AssociatedObject command.

ParameterDescription
File "<FilePath>"Enter a file path to an object track file. Supported file formats are csv, ctdf, amcat, qview, h5td, and .tedb.
Name "<DisplayName>"The display name of the object. Note that if the TSPI mapping contains AircraftId, then you cannot manually define the object name. If you wish to define the object name, the TSPI mapping cannot contain AircraftId.
Model "<ModelPath>"Enter the file path to a model file to represent the object. This parameter is optional.
ObjectType "<ObjectTypeName>"Enter the object type for the loaded TSPI data. Valid object types: Aircraft, Ground Vehicle, Launch Vehicle, Missile, Satellite, and Ship. The default object type is Aircraft. This parameter is optional.
Ownship "<OwnshipName>"The name of the Ownship that this object will be associated with.
TSPIMapping "<MappingName>"Enter the name of the TSPI data mapping for the data. This parameter, while recommended, is optional.
TimeColumn "<Name>"Enter the name of the time column. A time data mapping for this file type must contain a time column of this name. This parameter, while recommended, is optional.
UnitsFile "<FilePath>"Enter the full path to the units definition file. This parameter is optional.
TimeEpoch "<DateTimeString>"Enter the relative start time for the data.

This must be defined if you use the TimeUnits parameter. A daysecond or HMS TimeUnit requires a timeEpoch of midnight.

TimeUnits "<Value>"Enter the time units. Valid options are Day, hour, minute, second, millisecond, microsecond, nanosecond, daysecond, and HMS. Second is the default.

This parameter is optional; if used, the TimeEpoch parameter is required.

CloseDialog "<Yes | No>"Set the CloseDialog parameter to Yes or No. The default value is Yes. This parameter enables you to close the DataImport dialog when issuing connect commands.

Use the following format to apply the data file to an existing STK object.

TE_AssociatedObject <ScenarioPath> Add AttachTo "<STKObject>" Ownship "<OwnshipName>" File "<FileName>"

The following table describes the parameters for the TE_AnalysisObject command.

ParameterDescription
AttachTo "<STKObject>"Enter the name of an STK object.
Ownship "<OwnshipName>"The name of the Ownship that this object will be associated with.
File "<FilePath>"Enter a file path to a track file. Supported file formats are csv, ctdf, amcat, qview, and h5td.

The following table describes the parameters for the Delete and Reload commands.

ParameterDescription
Ownship "<OwnshipName>"Enter the name of the loaded Ownship.
SourcePath "<FilePath>"Enter the source path of the ownship.
File "<File>"Enter the name of the file you wish to reload.

Examples

To import an Associated Object into STK and TETK:

TE_AssociatedObject * Add File "C:\data\Drone_TSPI_Mission.csv" Name "MyDrone" Ownship "My_Ctdf_Aircraft" Model "C:\data\rotorDrone.mdl"

To import a detailed Associated Object into STK and TETK:

TE_AssociatedObject * Add File "C:\data\foo.csv" Name "foo" Ownship "trek" TSPIMapping "trektspi" TimeColumn "Time" UnitsFile "C:\data\unitsdef.def" TimeEpoch "25 May 2019 14:15:16.17" TimeUnits "second"

To attach to an Associated Object:

TE_AssociatedObject * Add AttachTo "ship1" Ownship "AF3_0385" File "\\\agi\common\Dev\TnE_Toolkit\Data\Flight_385_Test_Additional_Objects\Ship1 ShipXYZ_ICRF_HeadingInfixed.csv"

To delete an Ownship track file:

TE_AnalysisObject * Delete SourcePath "\\\agi\common\Dev\TnE_Toolkit\Data\Ownship\F35.AF3.0385.00017.001.0001.FTI_ICP_MSOSS_Statevector.lst" Ownship "AF3_0385"

To reload an Ownship track file:

TE_AnalysisObject * Reload SourcePath "\\\agi\common\Dev\TnE_Toolkit\Data\Ownship\F35.AF3.0385.00017.001.0001.FTI_ICP_MSOSS_Statevector.lst" Ownship "AF3_0385"

To import an Associated Object with object type and model into STK and TETK:

TE_AssociatedObject * Add File "C:\Program Files\AGI\STK 12\Help\TeTraining\Training files\Ship.csv" Name "SampleShip" Ownship "XF1_0123" ObjectType "Ship" Model "C:\Program Files\AGI\STK 12\STKData\VO\Models\Sea\Ship.glb"

Return message

Group membership

This command belongs to the following group(s):

T & E Toolkit

You can use TETK Connect commands in TETK scenarios for pre-flight planning, post-flight analysis, and to support analysis workflows.

You should not use TETK Connect commands when real-time propagators are creating STK vehicles and using STK features instantaneously. The use of Connect commands in a real-time application requires more computational power than STK can support.

TETK functionality that is commonly referred to as "real-time" is actually an offline analysis mode. In this mode, an STK/TETK scenario is prepared with data that is streamed to a particular time in a mission. The post-flight analysis can be prepared again on demand throughout the mission for the data for each time of request. You can use TETK Connect commands in these scenarios.

Version

12