Obtain Feature Dataset name

730
4
04-21-2010 08:43 AM
by Anonymous User
Not applicable
Original User: threem

I'm new to ESRI products (and GIS in general) and was wondering if there is a way to programatically find the Feature Dataset for an SDC Feature Class layer?

I have been able to retrieve the name of the FeatureClass (e.g. highways_2) using IDataSetName.Name but haven't been able to find an interface that will provide the Feature Dataset name (e.g. highways.sdc)

Any help would be appreciated.

Thanks,

-Mike
0 Kudos
4 Replies
by Anonymous User
Not applicable
Original User: kirkktx

What does IFeatureClass.FeatureDataset return?
0 Kudos
by Anonymous User
Not applicable
Original User: threem

Unfortunately the code I am looking at is used to update the datasource of an invalid layer.  So the layer's FeatureClass is Nothing.
0 Kudos
KirkKuykendall
Occasional Contributor III
If you cast IDataLayer.Datasourcename to IFeatureclassName, what do you see for IFeatureclassName.FeatureDatasetname ?
0 Kudos
by Anonymous User
Not applicable
Original User: threem

If you cast IDataLayer.Datasourcename to IFeatureclassName, what do you see for IFeatureclassName.FeatureDatasetname ?


That did it.... thanks for the tip.

-Mike
0 Kudos