SaveAs

Saves the current project to a Fly file with a specified name. For security reasons the file is saved to a predefined “Skyline\TerraExplorer” folder in the “Application Data” space of the current user. The full path of the saved file is provided in the method’s return value. You can also use %APPDATA% in Windows Explorer to locate the path on your computer.

Note: If the folder contains a file by the same name, the existing file is overwritten without a prompt.

Note: The Application Data folder path changes between different users and different Windows operating systems. To find the path used by your client look at the %APPDATA% environment variable.

 

JavaScript

 

SaveAs(

       ProjectFileName)

 

C#

 

string SaveAs(

       string ProjectFileName)

 

C++

 

HRESULT SaveAs(

       BSTR ProjectFileName,

       BSTR * pVal) 

Parameters

ProjectFileName

The name for the Fly file. If it is not specified, a FLY extension is added to the file name automatically. 
Note: A file name with a full path cannot be used here.

Return Value:

pVal

A full path of the Fly file being created.

Exceptions

See: HRESULT Return Values for a list of possible values returned by the HRESULT.