ArcObjects Library Reference (NetworkAnalyst)  

INATraversalResultEdit.CreateEdge Method

Make a new edge in the result.

[Visual Basic .NET]
Public Function CreateEdge ( _
    ByVal SourceID As Integer, _
    ByVal SourceOID As Integer, _
    ByVal FromPosition As Double, _
    ByVal ToPosition As Double, _
    ByVal fromJunctionID As Integer, _
    ByVal toJunctionID As Integer, _
    ByVal polyline As IPolyline _
) As Integer
[C#]
public int CreateEdge (
    int SourceID,
    int SourceOID,
    double FromPosition,
    double ToPosition,
    int fromJunctionID,
    int toJunctionID,
    IPolyline polyline
);
[C++]
HRESULT CreateEdge(
  long SourceID,
  long SourceOID,
  double FromPosition,
  double ToPosition,
  long fromJunctionID,
  long toJunctionID,
  IPolyline* polyline,
  long* ElementID
);
[C++]

Parameters

SourceID [in]   SourceID is a parameter of type long SourceOID [in]   SourceOID is a parameter of type long FromPosition [in]   FromPosition is a parameter of type double ToPosition [in]   ToPosition is a parameter of type double fromJunctionID [in]   fromJunctionID is a parameter of type long toJunctionID [in]   toJunctionID is a parameter of type long polyline [in]

  polyline is a parameter of type IPolyline

ElementID [out, retval]   ElementID is a parameter of type long

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Remarks

CreateEdge has been superseded by INATraversalResultEdit2.CreateEdgeEx.

See Also

INATraversalResultEdit Interface