Displaying facilities near a group of sewer mains

To display facilities near a group of sewer lines you can add a Map Drawer item to the Sewer Main Lookup. To do this, find AssetManagement.Asset:AssetLookupApplet in the MapDrawer configuration and add a “Show Nearby Facilities” item with these attributes:

Attribute Value
id 2
text Show Nearby Facilities
title Nearby Facilities

Next, add an INITSOURCES node and add a source for the new item. In this case the source type is grid, meaning that the records will be selected from the grid identified by the name attribute. You can find the correct grid ID in the Content Manager. The display attribute is set to selected, meaning that the Map Drawer will only display the records that you select in the grid.

Attribute Value
display selected
moinker Hansen.AssetManagement.Asset
name gdSearch
type grid

Finally, add a query command with these attributes:

Attribute Value
closemap False
id 4
items 2
querymoniker Hansen.AssetManagement.Plant.PlantFacility
state on
text Nearby Facilities
type query

When you open the Sewer Main Lookup, Show Nearby Facilities is now displayed in the menu when you click the Map Drawer button.