How to identify if a Subtype exists

914
3
03-28-2013 02:17 PM
GlennKammerer
New Contributor II
Windows 7 Pro 32bit SP 1
ArcView 10.0 SP 5

Using just ArcView here, or Desktop Basic, or whatever it's called now.

I want to write a function that detects if a feature class has any Subtypes in it, and if so, has a field been specified as the Subtype field. These are both just Yes/No answers. I would have thought for sure that describing the feature class would yield a Subtype property, but apparently it does not. Any help greatly appreciated. Thanks!
Tags (2)
0 Kudos
3 Replies
JakeSkinner
Esri Esteemed Contributor
Hi Glenn,

I don't believe this is possible until 10.1.  With 10.1 you can use the new arcpy.da.ListSubtypes function.

http://resources.arcgis.com/en/help/main/10.1/index.html#//018w00000021000000
0 Kudos
GlennKammerer
New Contributor II
Thanks, Jake.

What about with ArcObjects? Can that be done in 10.0?
0 Kudos
JakeSkinner
Esri Esteemed Contributor
Yes, I would assume you can accomplish this with ArcObjects.  I would post this question in the ArcObjects forum.
0 Kudos