How to Unselect the selected features of a specific layer in ArcMap9.1 throgh VB.Net?

5742
4
09-22-2011 12:08 AM
dgesridgesri
Occasional Contributor II
Greetings,

I need your help in my following simple idea:

I want to unselect programmatically the selected feature of a specific layer and not clear selection for all selected features in the map? Is this possible through Vb.Net code? e.g. unselect all the Fuse features in the map...

Thanks for interesting in my question....
0 Kudos
4 Replies
NeilClemmons
Regular Contributor III
Use IFeatureSelection.
0 Kudos
dgesridgesri
Occasional Contributor II
Thank you Mr. Neil Clemmons for your reply...

Can you please post a sample code on how to clear selection from one layer only programmatically using the interface IfeatureSelection?

This task can be done in ArcMap and i think it can be implemented in the code.Can`t be?
0 Kudos
NeilClemmons
Regular Contributor III
You get the layer you want, QI to IFeatureSelection and call the Clear method.  That's pretty much it.
0 Kudos
dgesridgesri
Occasional Contributor II
Thank you Mr. Neil..

I just used the IFeatureSelection Interface and everything work as expected,,
0 Kudos