Select to view content in your preferred language

How to get the subtypefield?

329
2
08-30-2010 04:18 AM
deleted-user-tmoWMkOb1VrD
New Contributor II
I try to make at tool that add some basic collums in front of a featureclass. then add some default values and dommains to the collums.

The problem is when the featureclass has subtypes. Then you have to add the deafault values and dommains pr. subtypevalue. And to make a list of all the subtype values you have to make a distinct of the subtypefield. But how do I get the Subtype field by using geoprocessing with python or vbs ?
0 Kudos
2 Replies
KenHartling
Esri Contributor
Hi,

I'm not sure if I fully understand your question, so to start, have you looked at the workflow for adding subtypes at http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#/Geoprocessing_workflow_for_subtypes/00... ?

If this doesn't answer your question, could you restate the question?
Thanks,
Ken
0 Kudos
BruceHarold
Esri Regular Contributor
Hi

The arcpy.Describe object also returns the subtypeFieldName.

http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//000v0000002s000000.htm

Regards
0 Kudos