Hi Szymon,There is no specific shape for point or polygon. To construct the point, you must use onMouseDown or onMouseDownMap. Using the x and y coordindates you can construct the point geometry.pt_geom = arcpy.PointGeometry(arcpy.Point(x, y))
For polygon, we hope to include this for final. For now, you would need to use line and close it off. Here is an example:class LineToPolyTool(object):
"""Implementation for LineToPoly_addin.linetopoly (Tool)"""
def __init__(self):
self.enabled = True
self.cursor = 3
self.shape = "Line"
def onLine(self, line_geometry):
array = arcpy.Array()
part = line_geometry.getPart(0)
for pt in part:
print pt.X, pt.Y
array.add(pt)
array.add(line_geometry.firstPoint)
polygon = arcpy.Polygon(array)
I hope this is helpful. Jason PardyEsri