ArcObjects Library Reference (NetworkAnalysis)  

INetworkBuilder.RebuildNetwork Method

Recreates the logical network index for the geometric network, features are not changed in this process.

[Visual Basic .NET]
Public Sub RebuildNetwork ( _
    ByVal GeometricNetwork As IGeometricNetwork, _
    ByVal configKeyword As String, _
    ByVal logFilePath As String _
)
[C#]
public void RebuildNetwork (
    IGeometricNetwork GeometricNetwork,
    string configKeyword,
    string logFilePath
);
[C++]
HRESULT RebuildNetwork(
  IGeometricNetwork* GeometricNetwork,
  BSTR configKeyword,
  BSTR logFilePath
);
[C++]

Parameters

GeometricNetwork [in]

  GeometricNetwork is a parameter of type IGeometricNetwork

configKeyword [in]   configKeyword is a parameter of type BSTR logFilePath [in]   logFilePath is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

RebuildNetwork will rebuild the logical network index for the geometric network. If the network is on SDE, the logical network will be rebuilt across all versions of the database.  The RebuildNetwork method is not designed to allow schema changes to a versioned geometric network.  It will not act upon the features in the network, no snapping will occur and no orphan junction features will be created. 

An exclusive schema lock must be obtained before using the RebuildNetwork method.  See the ISchemaLock interface for information on listing existing schema locks and obtaining an exclusive schema lock.

See Also

INetworkBuilder Interface