Description | Example | Return Message | Group

SaveAs

Save a scenario or object within a scenario with a different name

Syntax

SaveAs <ApplicationPath> <ObjectPath> "<FilePath>"

Description

You can quickly save a scenario or specific object within a scenario to a new name by using the SaveAs command. Enter the new file path, including the new object name. You needn't include a file extension (such as .sc for scenario files), since that is appended to the <FilePath> based on the type of object being saved.

Example

To save the current scenario as TestScen:

SaveAs / * "c:\stkuser\dev\Files\TestScen"

To save the ERS1 satellite as TestSat:

SaveAs / */Satellite/ERS1 "c:\stkuser\dev\Files\TestSat"

ReturnMessage

If activated, Connect returns an acknowledgment message.

Group Membership

This command belongs to the following group(s):

Area Targets

Attitude Coverage

Chains

Comm

Coverage

Facilities, Places & Targets

Line Targets

MTO

Radar

Scenarios

Sensors

Stars & Planets

Vehicles

Volumetric

Version

4.2

STK Programming Interface 11.0.1