Drops 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.
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.
RebuildGeometricNetwork_management (geometric_network, log_file)
The geometric network to rebuild.
A log file containing details about the progress of the tool.
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”)
This tool does not use any geoprocessing environments
- ArcGIS for Desktop Basic: No
- ArcGIS for Desktop Standard: Yes
- ArcGIS for Desktop Advanced: Yes