Polling the Community on how you typically find subtyped feature classes in a geodatabase. The use case is GIS Analyst (new hire) is handed a geodatabase with numerous features without any documentation.
My go-to is the List Subtypes function in arcpy, something like:
def subtype_field(dataset):
return next(iter(arcpy.da.ListSubtypes(dataset).values()))["SubtypeField"]
If the returned value is the empty string then you know there's no subtypes.
In addition to the ListSubtypes function in arcpy, there is a new GP tool called Generate Schema Report that lists just about everything in your GDB. You can learn more about it here!
Thank you for mentioning this! I've been generating these reports weekly for a year now but never thought to actually use them when I needed them 😉
I’d likely use Oracle SQL to query the enterprise geodatabase system tables.