OpenWorkspace()

Summary

Restores a workspace from its file.

Syntax

OpenWorkspace(string file_name, array options)

Argument Contents
file_name Path and file name of workspace file

No options are currently supported.

Notes

  • OpenWorkspace() opens files created by SaveWorkspace().

  • Workspace files must have an extension of .WRK.

  • When a workspace is opened all maps, layouts, and editor windows are restored to their original size and location. All previously open windows remain in place.

Example

OpenWorkspace("mywork.wrk", )
OpenWorkspace("c:\\datafile\\mywork1.wrk", )

Error Codes

Error Type Meaning
Error The file is not a valid workspace file
NotFound The specified file does not exist

See Also

Function Summary
SaveWorkspace() Saves the current workspace to a file