Export Interopability extension layer in Arc 10.0 to shape/FileGDB or PGDB

Discussion created by mravichandran on Feb 27, 2014
Dear Readers,

thanks a lot for taking the time to read this post.

Using ArcObjects with C# in VS 2010, I was able to create a .FDL (interop extn black box file) mimicking the clicks of a 'Add Interopability Layer' and dropping the same in c:\users\...\AppData\Roaming\SAFE Software\Interoperability folder.

Users are able drag and drop the Interop Layer if a .lyr file does not exist in the same folder - if a .lyr file exists with the same name as the MyWFSLayerFromServer.fdl - then MyWFSLayerFromServer is added to TOC.

[/FONT][FONT=Lucida Console]IGxLayer gxlGXLayerCls = new ESRI.ArcGIS.Catalog.GxLayer();
IGxFile gxFile = (ESRI.ArcGIS.Catalog.IGxFile)gxlGXLayerCls; //Explicit Cast.
gxFile.Path = strLYRFile2BLoadedAsFeatLayerInParam;

Now, how to export this newly added gxlGXLayerCls layer to a PGDB or FGDB or even a shapefile for starters.

I looked at IFeatureDataConverter class and that .ConvertFeatureClass wants an inputFeatClassName and that is driving me crazy.