SaveWorkspace Method

Saves the workspace with the specified parameters: filename and workspace format version.

Applies to: Application object

Syntax

[[Let] booleanRet =] object.SaveWorkspace ( fileName, saveVersion, showSaveDlg )

The SaveAs method syntax has these parts:

Part Description
object Required. An expression that returns an instance of the Application object.
fileName Required. An expression that returns a String value. The name of the file, to save the document in.
saveVersion Required. An expression that returns a Long value. The version of the format to save the workspace in.
showSaveDlg Optional. An expression that returns a Boolean value. A flag that indicates whether to show the file save dialog: True - display the dialog, False - not to display the dialog and use the name, specified by the fileName parameter. The default value is False.
booleanRet Optional. A Boolean type variable.

Remarks

The workspace format version saveVersion specifies in which format to save the workspace. The saveVersion parameter can take the following values: 200 or greater - the workspace is in the ConceptDraw V format, between 0 and 200 - the workspace is in the ConceptDraw 1.x format.

If the workspace has been saved successfully with the specified parameters, the SaveWorkspace method returns True. Otherwise, the method returns False.