| Maptitude GISDK Help |
Saves the current workspace to a file.
SaveWorkspace(string file_name [, array options])
| Argument | Contents |
|---|---|
| file_name | Path and file name for the workspace |
| Option | Type | Contents |
|---|---|---|
| Header Data | Any | A value to store in the file header, including an array |
The options array is an optional argument.
Workspace files must have an extension of .WRK.
SaveWorkspace("mywork.wrk")
// HeaderData variable defined previously
SaveWorkspace("c:\\datafile\\mywork1.wrk", {{"Header Data", HeaderData}})
| Error Type | Meaning |
|---|---|
| Error | An error occurred writing to the workspace file (e.g., out of disk space) |
| Function | Summary |
|---|---|
| OpenWorkspace() | Restores a workspace from its file |
| ©2025 Caliper Corporation | www.caliper.com |