Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have a feature class.

IFeatureClass AOIfc = AOIfws.OpenFeatureClass("BrigadeAOI");

I need to be able to put this feature class into a feature dataset that is newly created. The following line of code doesn't work for me.

IFeatureDataset AOIfd = AOIfc.FeatureDataset;

How do I accomplish this? Thanks!

share|improve this question
    
Could you please tag this post with the appropriate software/languages? Thanks –  Aaron May 29 '13 at 15:03

1 Answer 1

You might be able to do this using IDatasetContainer.AddDataset.

From the IDatasetContainer documentation:

The IDatasetContainer interface lets you move datasets between feature datasets and workspaces. Both objects implement the interface. It should only be used to move datasets between feature datasets and the workspace level within a single workspace, however; it cannot be used to transfer datasets from one workspace to another.

share|improve this answer
    
Thank you for your help. I ended up just doing this using ArcCatalog. I won't try to create this in the code. –  Renee Cammarere Jun 3 '13 at 15:20

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.