Maptitude GISDK Help |
Caliper Corporation recommends the free Visual Studio Code editor to edit GISDK scripts. Caliper developed an extension to Visual Studio Code for its macro language. This extension can be obtained from the Microsoft Visual Studio Marketplace. The name of the extension is GISDK.
Can be used with Visual Studio or the free Visual Studio Code Editor
Parses and colorizes GISDK-related files (such as .RSC files)
Provides code snippets for GISDK macros and functions
Provides a Peek Defintion macro (Alt-F12)
Provides a Goto Definition for GISDK macro functions (F12)
Provides a Peek Defintion macro (Alt-F12)
Provides Code Completion suggestions for GISDK keywords
This GISDK extension works better in conjunction with the following extensions:
All Autocomplete
Bracket Pair Colorizer
Bookmarks
Scope Bar
To Start Editing a Resource File in Visual Studio Code
To Configure a Task for Compiling Resource Files
In VSC choose View > Command Palette (CTRL-SHIFT-P).
Choose (or type) Tasks: Configure Task.
Choose Create tasks.json file from template.
Choose Others: Example to run an arbitrary external command.
VSC will create a tasks.json file.
Replace the content of the tasks.json file with the code below:
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "Compile_rsc",
"type": "shell",
"command": [
"c:\\program Files\\Maptitude 2021\\rscc.exe"
],
"args": [
"-u",
"${fileDirname}\\${fileBasenameNoExtension}.dbd",
"${file}"
],
"problemMatcher": [
{ "pattern":
{
"regexp": "([^(]*)\\((\\d+)\\).*\\: (.+)",
"file" : 1,
"line": 2,
"message": 3,
},
"fileLocation": ["absolute"]
}
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
Save the taks.json file (Ctrl-S).
Configure the Main Build Task by opening the Command Palette (CTRL-SHIFT-P) and choose Tasks: Configure Default Build Task.
Choose Compile_rsc.
To Compile a Resource File
The compiling task works on the file that is currently being edited. Choose the file you want to compile by clicking on the *.rsc file either on the Explorer Side Bar o on the Editors Group file tab.
Open the Command Palette (CTRL-SHIFT-P).
Chose Tasks: Run Build Task (CTRL-SHIFT-B).
When using the Task settings above, the *.rsc file will be compiled to a *.dbd file (a UI) with the same file name of the resource file.
Compilation errors will be displayed in the Problems tab (CTRL-SHIFT-M). Double click on a problem line to go to the corresponding code line in the editor.
©2025 Caliper Corporation | www.caliper.com |