AGI STK Objects 11 Send comments on this topic.
ImportObject Method (IAgStkObjectCollection)
See Also  Example
FilePath





Description

Imports object from external file and returns the pointer to the object.

Syntax

[Visual Basic .NET]
Public Function ImportObject( _
   ByVal FilePath As String _
) As IAgStkObject

[C#]
public IAgStkObject ImportObject(
string FilePath
);

[Managed C++]
public: IAgStkObject^ ImportObject(
String __gc ^ FilePath
);

[Java]
public IAgStkObject importObject(
String FilePath
);

[Unmanaged C++]
public: HRESULT ImportObject(
BSTR FilePath,
IAgStkObject ** ReturnValue
);

Parameters

FilePath

Example

Import an existing STK Object file into an object collection
[C#] Copy Code
col.ImportObject(stkObjectLocation); 
 

Import an existing STK Object file into the scenario
[C#] Copy Code
root.CurrentScenario.Children.ImportObject(stkObjectLocation); 
 

Import an existing STK Object file into an object collection
[Visual Basic .NET] Copy Code
col.ImportObject(stkObjectLocation)

Import an existing STK Object file into the scenario
[Visual Basic .NET] Copy Code
root.CurrentScenario.Children.ImportObject(stkObjectLocation)

See Also

© 2016 Analytical Graphics, Inc. All Rights Reserved.

STK Programming Interface 11.0.1