SaveAs Method (Library object)

Saves the library with the specified parameters: filename, version.

Applies to: Library object

Syntax

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

The SaveAs method syntax has these parts:

Part Description
object Required. An expression that returns an instance of the Library object.
fileName Required. An expression that returns a String value. The filename (full or relative), under which the library is to be saved.
saveVersion Required. An expression that returns a Long value. The version of the format to save the library 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 document format version saveVersion specifies in which format to save the library. The saveVersion parameter can take the following values: 200 or greater - the library is in the ConceptDraw V format, between 0 and 200 - the library is in the ConceptDraw 1.x format. To save the library in the same format it was saved before, set saveVersion to 0 or less.

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

Saving the library under fileName different from the current document filename changes the corresponding properties of the library: the FullName property, the Name property, the Path property. If the name of the file, specified in fileName equals to an empty string, the method attempts to save the library under the current filename. If the library hasn't been yet saved, the name of the file (the Name property) is made up automatically of the library title (the Title property) and the standard extension for ConceptDraw libraries (.cdl) and then the library is saved in the current folder of the application. Also, by using the showSaveDlg parameter it's possible to specify the filename manually.

 

See Also

FullName property, Name property, Path property, OpenLib method, Save method