Opens an existing workspace file.
Applies to: Application object
[[Let] booleanRet =] object.OpenWorkspace ( fileName ) |
The OpenWorkspace 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. Contains the name of the workspace file including the full or relative path. |
booleanRet | Optional. A Boolean type variable. |
If the specified file has been successfully found and opened as a ConceptDraw workspace file, the OpenWorkspace method returns True. Otherwise, the method returns False. To open ConceptDraw documents and libraries separately use the OpenDoc and OpenLib methods respectively.
This example contains a application-level script. The script uses the OpenWorkspace method to imitate the way the "File->Open Workspace" menu item of ConceptDraw works.
thisApp.OpenWorkSpace( GetOpenFileName() ) |
See Also |
OpenDoc method, OpenLib method, SaveWorkspace method |