Hi, I have a polygon shapefile containing several land parcels. I would like to identify which of these parcels would intersect to my other polygon shapefile by creating a single button. Steps on customization are mostly understood by me. But since I'm new to programming, its difficult for me to create the VBA code for this. Any suggestion?? A already constructed code would be very much appreciated. Thanks! You can use Iquerybylayer interface for doing this... you can also go through some of the forums like :- http://forums.esri.com/Thread.asp?c=93&f=993&t=160044 pQueryByLayer = new QueryByLayerClass(); pQueryByLayer.FromLayer = pFeatureLayer; pQueryByLayer.ByLayer = pFeatureLayer; pQueryByLayer.UseSelectedFeatures = true; pQueryByLayer.LayerSelectionMethod = esriLayerSelectionMethod.esriLayerSelectBoundaryTouches; IFeatureSelection pFr = pFeatureLayer as IFeatureSelection; pFr.SelectionSet = pQueryByLayer.Select(); here from and by layer have been given the same featurelayer you can change it according to you.
... View more