Show Navigation | Hide Navigation
You are here:
Geoprocessing tool reference > Data Management toolbox > Subtypes toolset > Tools

Remove Subtype (Data Management)

Release 9.2
Last modified November 29, 2010
E-mail This Topic Printable Version Give Us Feedback

Print all topics in : "Tools"


Related Topics

Removes a subtype from the input table using its code.

Learn more about working with subtypes


Usage tips

Command line syntax
An overview of the Command Line window
RemoveSubtype_management <in_table> <subtype_code;subtype_code...>

Parameter Explanation Data Type
<in_table>

The feature class or table containing the subtype definition.

Table View
<subtype_code;subtype_code...>

The code used to remove a subtype from the input table or feature class.

The Add Value button, which is used only in ModelBuilder, allows you to add expected value(s) so you can complete the dialog and continue to build your model.

String
Data types for geoprocessing tool parameters


Command line example

workspace E:\arcgis\ArcTutor\BuildingaGeodatabase\Montgomery.mdb
RemoveSubtype water\fittings "4;7"

Scripting syntax
About getting started with writing geoprocessing scripts
RemoveSubtype_management (in_table, subtype_code)

Parameter Explanation Data Type
in_table (Required)

The feature class or table containing the subtype definition.

Table View
subtype_code (Required)

The code used to remove a subtype from the input table or feature class.

The Add Value button, which is used only in ModelBuilder, allows you to add expected value(s) so you can complete the dialog and continue to build your model.

String

Data types for geoprocessing tool parameters


Script example

# Purpose: Remove subtypes from a subtype definition

# Create the Geoprocessor object
import arcgisscripting
gp = arcgisscripting.create()

try:
    # Set the workspace (to avoid having to type in the full path to the data every time)
    gp.Workspace =  "C:/arcgis/ArcTutor/BuildingaGeodatabase/Montgomery.mdb"

    # Process: Remove Subtype Codes...
    gp.RemoveSubtype("water/fittings", "5;6;7")

except:
    # If an error occurred while running a tool print the messages
    print gp.GetMessages()

Please visit the Feedback page to comment or give suggestions on ArcGIS Desktop Help.
Copyright © Environmental Systems Research Institute, Inc.