ArcGIS Desktop

  • ArcGIS Pro
  • ArcMap

  • My Profile
  • Help
  • Sign Out
ArcGIS Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS Desktop

A complete professional GIS

ArcGIS Enterprise

GIS in your enterprise

ArcGIS Developers

Tools to build location-aware apps

ArcGIS Solutions

Free template maps and apps for your industry

ArcGIS Marketplace

Get apps and data for your organization

  • Documentation
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

ArcMap

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • Extensions

Remove Empty Feature Class From Geometric Network

  • Summary
  • Usage
  • Syntax
  • Code sample
  • Environments
  • Licensing information

Summary

Removes an empty feature class from a geometric network.

Usage

  • Only empty feature classes can be removed; populated feature classes cannot be removed. Within an enterprise geodatabase, this may require the Compress tool to be run in order for the feature class to be recognized as empty.

  • This tool will not delete the feature class; it will only remove it from the network. You must delete the feature class if needed.

  • In an enterprise geodatabase, the feature class being removed and the geometric network may be versioned.

  • You cannot remove the orphan junction feature class from a geometric network.

  • A feature class cannot be removed from the geometric network if, besides the orphan junction feature class, it is the sole feature class in the network.

Syntax

arcpy.management.RemoveEmptyFeatureClassFromGeometricNetwork(in_geometric_network, in_feature_class)
ParameterExplanationData Type
in_geometric_network

The geometric network from which the feature class will be removed.

Geometric Network
in_feature_class

The name of the feature class to remove.

String

Code sample

The following stand-alone Python script demonstrates how to use the RemoveFeatureClassFromGeometricNetwork tool to remove an empty feature class called "Tanks" from a geometric network.

# Import arcpy module
import arcpy

# Local variables:
Water_Net = "C:/GeometricNetworks/Montgomery.gdb/Water/Water_Net"

# Process: Remove Feature Class From Geometric Network
arcpy.RemoveEmptyFeatureClassFromGeometricNetwork_management(Water_Net, "Tanks")

Environments

This tool does not use any geoprocessing environments.

Licensing information

  • Basic: No
  • Standard: Yes
  • Advanced: Yes

Related topics

  • An overview of the Geometric Network toolset

ArcGIS Desktop

  • Home
  • Documentation
  • Support

ArcGIS

  • ArcGIS Online
  • ArcGIS Desktop
  • ArcGIS Enterprise
  • ArcGIS
  • ArcGIS Developer
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Esri Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
Copyright © 2021 Esri. | Privacy | Legal