No Poly is a another layer. I experimented a lot with layers.
Why Select By Location doesn't work in Python console ?
By the way in ArcGIS Help we read:
poly = arcpy.Polygon(arcpy.Array([p1, p2, p3, p4]))
arcpy.SelectLayerByLocation_management("Qolyr", "WITHIN", poly)
Qolyr is a point object layer.
So arcpy.Polygon
is feature class, right ? Is everything OK with this code snippet ?
Thanks for your attention !