Remove Subtype (Data Management) |
|
Release 9.2
Last modified November 29, 2010 |
![]() ![]() ![]() Print all topics in : "Tools" |
Removes a subtype from the input table using its code.
Learn more about working with subtypes
Usage tips
Subtypes are removed using their integer code.
The subtypes of a feature class or table can also be managed in ArcCatalog. Subtypes can be created and modified using the Subtypes Property page on the dataset's Properties dialog box.
The Subtype Code parameter's Add Value button is used only in ModelBuilder. In ModelBuilder, where the preceding tool has not been run, or its derived data does not exist, the Subtype Code parameter may not be populated with values. The Add Value button allows you to add expected value(s) so you can complete the Remove Subtype dialog and continue to build your model.
The environment settings do not have an effect on this tool.
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 |
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 |
# 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()