Maptitude GISDK Help

Macros

 

GISDK macro resources are like subroutines, and consist of a series of Caliper Script statements. A GISDK macro is executed when:

GISDK macros can be embedded in a dialog box resource.

 

A GISDK macro resource consists of the optional static declaration, a macro name, up to eight optional arguments, and a series of Caliper Script statements that make up the GISDK macro. The structure of a GISDK macro resource is:

 

{static} Macro "Macroname" {(argument1, argument2, ...)}

     <statements go here>

endMacro

 

If you declare a macro static it can only be called from resources within the same resource file in which the macro is defined.

 

GISDK macro names are case sensitive, and can contain any combination of letters, numbers, and spaces. A GISDK macro resource can return a single value using the function Return().

 

You can use the GetInterface() GISDK function to get the name of the UI Database that a specific macro, or the currently running macro, is in.

 

For more information, see...

Macro Arguments

Macro Return Values

Functions for Macros

 

 

©2025 Caliper Corporation www.caliper.com