This sample .NET API
extension is a translation of the
GISDK Batch Maps Add-In.
This extension prints a batch of maps based on chosen map features. It uses
the map BATCHMAPS.MAP and files that are in your TUTORIAL folder. It
displays a list of store names and addresses from a store points layer, lets
you build a list of chosen stores and, for each chosen store, automatically
creates a layout on your default printer with a map of the store, a legend,
and a title containing the store name. A test mode is provided which
displays the prepared layout without actually printing it.
You can change the extension to use your own data.
Installation
- Download the file
GISDK_batchmapsdotnet.zip
and extract the C# project and all its files, including BATCHMAPS.MAP.
Open the project in Microsoft Visual Studio and build it. You may need to fix the reference to GisdkAPI.dll to point to its
correct location in your program directory.
-
Copy the built assembly
BatchMaps.dll to one of the following locations:
• c:\PROGRAMDATA\CALIPER\EXTENSIONS\
(available for all users, all products)
• c:\PROGRAMDATA\CALIPER\<PRODUCTNAME>\EXTENSIONS\ (available
for all users, current product)
• c:\USERS\<USERNAME>\DOCUMENTS\CALIPER\EXTENSIONS\ (available for current
user, all products)
• c:\USERS\<USERNAME>\DOCUMENTS\CALIPER\<PRODUCTNAME>\EXTENSIONS\ (available
for current user, current product)
-
To run the example, start Maptitude/TransCAD/TransModeler and open BATCHMAPS.MAP.
-
Select the Batch Maps extension from the
Tools-GIS Developer's Kit-AddIns menu.