Find abbreviation file – Pitney Bowes MapXtreme User Manual

Page 484

Advertising
background image

Appendix B: Customizing MapXtreme

Find Abbreviation File

MapXtreme v7.1

491

Developer Guide

In this example MapXtreme will search for custom symbols in a folder like C:\Documents and
Settings\username\Application Data\Your Corporation\Your Application\CustSymb. Note that the
<SpecialPath> element should not include the CustSymb folder name. If it does, the path would be
interpreted as ...\Your Application\CustMapXrtreme 2004\CustSymb\CustSymb. The duplicated
"CustSymb" would be incorrect.

Use the <SpecialPath> syntax if the application data is stored in a location relative to a .NET
Framework special system folder. For example, if your application data is stored in a directory
named MyAppData located under the “My Documents” directory, then the entry in the configuration
file could be:

<Personal>MyAppData</Personal>

where “Personal” is the value of the .NET Framework enumeration Environment.SpecialFolder that
represents the “My Documents” directory.

Each element in the configuration element above is defined as follows:

<configSections>
This is where handlers for custom sections are declared. In this case the ConfigSectionHandler
class defined in assembly MapInfo.CoreEngine is responsible for parsing the MapInfo.CoreEngine
section of the configuration file.

<MapInfo.CoreEngine>
This section contains settings for the MapInfo.CoreEngine assembly. Specifically, application data
search paths.

<ApplicationDataPaths>
This section defines additional paths used by MapXtreme when searching for application data files.

<Path>
An element to use if the full path to the application data is known.

<SpecialPath>
Use this syntax if the application data is stored in a location relative to a well-known system folder.
For example, if your application data is stored in a directory named MyAppData, located under the
“My Documents” directory, then the entry in the configuration file looks like
<Personal>MyAppData</Personal>, where “Personal” is the value of the
Environment.SpecialFolder enumeration that represents the “My Documents” directory. Any of the
enumeration values in the Environment.SpecialFolder can be used to define an application data path
in the configuration file.

Find Abbreviation File

The Abbreviation file can be customized to match your data to make your find operations more
efficient. See

Fine Tuning the Find Process

for more information.

Advertising