evCreate API 5.7 Help

SaveAs Function

Saves an Envision document currently opened in the Canvas Envision Creator app as a new .evdoc file at a given location on the Canvas Envision Portal cloud solution.

SaveAs(file?: [[[EvCloudFile|evcloudfile-interface.html]]]): Promise<undefined | [[[EvCloudFile|evcloudfile-interface.html]]]>

Parameters

file?: EvCloudFile

An EvCloudFile object with the location on the Canvas Envision Portal cloud solution where the currently opened Envision document should be saved as a new .evdoc file. If it is not given, a dialog pops up to specify the location.

Return value

Promise<undefined | EvCloudFile>

A Promise that, if fulfilled, resolves to either:

  • undefined: the file-saving operation has been canceled or failed. However, an error is thrown in most error cases.

  • EvCloudFile: an object with the location of the successfully saved new .evdoc file.

12 February 2025