Tag Info

New answers tagged


I would potentially approach this with the iFeatureLayerDefinition interface. http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/0012/0012000004v2000000.htm It has a CreateSelectionLayer function which: Creates a new feature layer from the existing layer based on the current selection and the specified query expression.


Couple things wrong in your loop. First you are calling dataset = datasets.Next(); at top and bottom of the loop. Right there you are skipping some feature classes. If your feature classes are nested in a Feature Dataset then you have to iterate through it also. It's a good idea to call IEnumDataset.Reset() before starting the loop to ensure you are at the ...

Top 50 recent answers are included