ArcGIS for Desktop

  • Documentation
  • Pricing
  • Support

  • My Profile
  • Help
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

The mapping platform for your organization

ArcGIS for Desktop

A complete professional GIS

ArcGIS for Server

GIS in your enterprise

ArcGIS for 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
  • Pricing
  • Support
Esri
  • Sign In
user
  • My Profile
  • Sign Out

Help

  • Home
  • Get Started
  • Map
  • Analyze
  • Manage Data
  • Tools
  • More...

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

RemoveEmptyFeatureClassFromGeometricNetwork_management (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

  • ArcGIS for Desktop Basic: No
  • ArcGIS for Desktop Standard: Yes
  • ArcGIS for Desktop Advanced: Yes

Related topics

  • An overview of the Geometric Network toolset

ArcGIS for Desktop

  • Home
  • Documentation
  • Pricing
  • Support

ArcGIS Platform

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

About Esri

  • About Us
  • Careers
  • Insiders Blog
  • User Conference
  • Developer Summit
Esri
Tell us what you think.
© Copyright 2016 Environmental Systems Research Institute, Inc. | Privacy | Legal