Maptitude GISDK Help |
Saves a layout to a file.
SaveLayout(string layout_name, string file_name [, array options])
Argument |
Contents |
layout_name |
The name of the layout, or null for the current layout |
file_name |
The path and name of the file |
Option |
Type |
Contents |
Header Data |
Any |
A value to store in the file header, including an array |
The options array is an optional argument.
SaveLayout("My First Layout", "c:\\myfile.lay")
// HeaderData variable defined previously
SaveLayout( , "c:\\myfile1.lay", {{"Header Data", HeaderData}})
Error Type |
Meaning |
Error |
Error writing to the file (e.g., the disk is write protected or out of space) |
NotFound |
There is no layout with the specified name |
Function |
Summary |
Closes a layout window |
|
Creates a new layout window |
|
Gets the name of the current layout window |
|
Creates a layout from a file |
©2025 Caliper Corporation | www.caliper.com |