Summary
Deletes and re-creates the logical network index for the geometric network. If the geometric network is in an enterprise geodatabase and is versioned, the logical network will be rebuilt across all versions of the database. This tool will not change features in the network, no snapping will occur, and no orphan junction features will be created.
Usage
The Rebuild Geometric Network tool can take anywhere from hours to several days to complete, depending on the size of the geometric network and number of versions within an enterprise geodatabase. While the tool is running, the geometric network will not be available to other users and applications.
It is strongly recommended that a backup for your local or enterprise geodatabase be taken prior to running this tool. The results of this tool are permanent; they cannot be undone and cannot be rolled back.
When run against a geometric network in an enterprise geodatabase, the owner of the geometric network must be the user specified in the workspace connection.
Syntax
RebuildGeometricNetwork_management (geometric_network, out_log)
Parameter | Explanation | Data Type |
geometric_network | The geometric network to rebuild. | Geometric Network |
out_log | A log file containing details about the progress of the tool. | File |
Code sample
The following stand-alone Python script demonstrates how to use RebuildGeometricNetwork to find disconnected features within a geometric network.
# Import arcpy module
import arcpy
# Local variables:
Water_Net = "C:\\testing\\GeometricNetworks\\Montgomery.gdb\\Water\\Water_Net"
# Process: Rebuild Geometric Network
arcpy.RebuildGeometricNetwork_management(“Water_Net”, “c:\temp\Water_Net_Rebuild.log”)
Environments
This tool does not use any geoprocessing environments.
Licensing information
- ArcGIS Desktop Basic: No
- ArcGIS Desktop Standard: Yes
- ArcGIS Desktop Advanced: Yes