jazmateta

Getting FEATURE DATASET name - not FEATURE CLASS name - using Python

Discussion created by jazmateta on Sep 10, 2013
Latest reply on Sep 11, 2013 by GSCUser85
So,
Has anyone figured out how to get the Feature Dataset name using Python when your data is residing in FeatureDatasets within the database?  I see that the layer.datasetName is really the feature class name.  Unfortunately, we have several feature classes within feature datasets for network and topology purposes and now that we are changing servers, I need to have a script that will change the source data. 

Alas, as of right now, I can't do it via script unless someone has a work around out there. 

I've been banging my head against the wall for a week now, because like some others, when a term 'dataset' is used, you would expect it to be related to the same things that it is elsewhere.  I'd seriously consider an attempt to parse the name out, but we have several different former datasources referenced (even after changing them in the mxd - thanks for hardcoding ESRI) and the feature dataset names are many different lengths.

Thanks if anyone has a workaround to help with this.

Outcomes