This document is archived and information here might be outdated.  Recommended version.


INATraversalResultEdit2.CreateEdgeEx Method (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (NetworkAnalyst)  

INATraversalResultEdit2.CreateEdgeEx Method

Make a new edge in the result.

[Visual Basic .NET]
Public Function CreateEdgeEx ( _
    ByVal SourceID As Integer, _
    ByVal SourceOID As Integer, _
    ByVal EID 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 CreateEdgeEx (
    int SourceID,
    int SourceOID,
    int EID,
    double FromPosition,
    double ToPosition,
    int fromJunctionID,
    int toJunctionID,
    IPolyline polyline
);
[C++]
HRESULT CreateEdgeEx(
  long SourceID,
  long SourceOID,
  long EID,
  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 EID [in] EID 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

CreateEdgeEx creates an edge in the traversal results edge feature class.

It is unnecessary to pass in a geometry.  If passed in, it will be used.  Otherwise, it is possible to call InferGeometry later to infer all of the geometries.

See Also

INATraversalResultEdit2 Interface