Resources
Resources are the building blocks of add-ins and GISDK applications. The Caliper Script includes six types of resources:
-
Classes, described under Object-Oriented Programming with GISDK
Resources are defined in free-format text files called resource files. Resource files can:
-
Contain multiple resources
-
Be combined together to make an add-in or application
-
Contain comments set off by a double slash (//), indicating that all of the remaining text on the same line of the file is a comment.
Keywords and function names in resource files are not case sensitive.
You can declare resources as static, meaning that they can only be called from resources within the same resource file in which they are defined. If you declare your resource as static then you don't have to worry about name collisions with other uses of the same name elsewhere. For example:
//this macro can only be called from this resource file
static Macro "my macro"
//do something
endMacro
//this macro can be called from anywhere
Macro "another macro"
//do something else
endMacro
For more information, see...