Edge Flags from Points

Description:

The Edge Flags from Points command creates edge flags from point features in a specified layer. If there are points selected in the layer then edge flags are created only for the selected points.

How to use:
  1. Start ArcMap and add a geometric network and a source point feature class.
  2. Browse and select the EdgeFlagsFromPts.dll using the 'Add From File' button on the customization dialog.
  3. From the 'Developer Samples' commands category, add the 'Add Edge Flags from Points' to the Feature Layer Context Menu.
  4. Add the Utility Network Analyst toolbar.
  5. Select the target geometric network from the Network dropdown list on the Utility Network Analyst toolbar.
  6. Optionally, set the flag and barrier snapping tolerance in the Analysis Options dialog on the Utility Network Analyst toolbar.
  7. Optionally, select only the point(s) in the source point feature layer from which you wish to create edge flags. If you do not make a selection, all points in the source point feature layer will be used to create edge flags.
  8. Right-click the source point feature layer and click the Add Edge Flags from Points command. An edge flag is created for each selected point (or all points, if no selection was created). If there are point features that are not within the flag and barrier snapping tolerance of a network feature, then a dialog will appear, indicating how many such point features were encountered.

Application:
ArcMap

Requires: A geometric network, a point feature class.

Difficulty: Intermediate


Visual Basic
File Description
clsEdgeFlagsFromPts.cls Class file containing the Edge Flags from Points command.
EdgeFlagsFromPts.vbp The project file for the Edge Flags from Points command.
EdgeFlagsFromPts.dll The compiled Edge Flags from Points command.


Key CoClasses: UtilityNetworkAnalysisExt, UtilityNetwork, PointToEID, EdgeFlagDisplay
Key Interfaces: INetworkAnalysisExt, INetworkAnalysisExtFlags, IPointToEID, INetElements, IFlagDisplay, IEdgeFlagDisplay
Key Members: INetworkAnalysisExt::CurrentNetwork, INetworkAnalysisExt::SnapTolerance, INetworkAnalysisExtFlags::AddEdgeFlag, IPointToEID::GetNearestEdge, INetElements::QueryIDs, INetElements::IsValidElement