Versions: 9.3.1 - 10.0.3 SP1
Product Availability: ArcFM Desktop
The ArcFM Locator Tool lets users query the geodatabase in order to find features based on specific criteria. The Locator Tool is customizable in that you can provide the user with quick, familiar methods of locating features which make using ArcFM more effective. These custom methods of location are called Finders. This code sample allows the user to search for features based on the primary display field.
How to Implement:
- You may modify the code sample. This step is not required.
- Compile the code sample.
- If you wish to use IMMFinder objects instead of the new Search Strategy architecture, modify the following registry key: HKEY_LOCAL_MACHINE\Software\Miner and Miner\ArcFM8\LocatorToolSettings\UseClassicLocator. UseClassicLocator is a DWORD Value that takes a setting of 1 or 0; 1=Classic Locators (IMMFinder); 0=New Locators (IMMSearchStrategy).
All of the files shown below are required for the project to compile successfully.
|Miner.Samples.Finder.csproj||C# project containing the code to generate a custom finder object.|
|DropDownItem.cs||Adds the custom locator to the Locator Tool dropdown menu.|
|PriDisplayLocator.cs||Code to create a custom locator that allows the user to search for values in the primary display field. Appears in the user interface with the following name: ArcFM Display Field (.NET).|