Is there any possibility to add a Point-Feature as an input parameter in a ArcPy-/ArcGIS-Python-script? If I choose "Point" as datatype in the parameter list, I get 2 input-fields for a X- and a Y-coordinate. What I want is something like a button to get a crossfade cursor for selecting "on-click" a coordinate in the map. Is there anything like this?
If you want your tool to interact with the map, you need to write a python add-in. To retrieve the X and Y coords of the point you click, use the
y values of the
onMouseDownMap() function of the Tool add-in class.
You have a nice example of code that corresponds to this in this article: HowTo: Capture map coordinates with a mouse click using Python.
And the help section about Python add-ins is here.