Hi,I need to run "Select By Location" tool for each of the polygon (ring) created by Service Area Network tool. I do not know how to pass the selected polygon to the tool.Please, any help would be appreciated.ThanksDim ToolSelByLoc As SelectLayerByLocation = New SelectLayerByLocation() Dim naContext As ESRI.ArcGIS.NetworkAnalyst.INAContext = naLayer.Context Dim table As ITable = TryCast(naContext.NAClasses.ItemByName("SAPolygons"), ITable) If table.RowCount(Nothing) > 0 Then For rec = 1 To table.RowCount(Nothing) 'Dim qF As IQueryFilter = New QueryFilter 'qF.WhereClause = "OBJECTID = " & rec 'selSet = table.Select(qF, esriSelectionType.esriSelectionTypeIDSet, esriSelectionOption.esriSelectionOptionNormal, Nothing) With ToolSelByLoc .in_layer = pointFL .overlap_type = "WITHIN" .select_features = table '.Select(qF, esriSelectionType.esriSelectionTypeIDSet, esriSelectionOption.esriSelectionOptionNormal, Nothing) End With RunTool(gp, ToolSelByLoc, Nothing) 'SelectByLocation next rec End If