STK ObjectsSend comments on this topic.
ImportObject Method (IAgStkObjectCollection)
See Also
FilePath
Windows





Windows & Linux

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
);
[Unmanaged C++]
public: HRESULT ImportObject(
    BSTR FilePath,
    IAgStkObject ** ppRetVal
);
[Java]
public IAgStkObject importObject(
    String FilePath
);
[Python - STK API ]
def ImportObject(self, FilePath:str) -> "IAgStkObject":

Parameters

FilePath

See Also

Example

Import an existing STK Object file into an object collection
[C#]
col.ImportObject(stkObjectLocation);
Import an existing STK Object file into the scenario
[C#]
root.CurrentScenario.Children.ImportObject(stkObjectLocation);
Import an existing STK Object file into the scenario
[Visual Basic .NET]
root.CurrentScenario.Children.ImportObject(stkObjectLocation)
Import an existing STK Object file into an object collection
[Visual Basic .NET]
col.ImportObject(stkObjectLocation)
© 2024 Analytical Graphics, Inc. All Rights Reserved.