I have a python code that is generating coordinates one by one. Is there a way to display them directly in ArcMap as they are generated? I am aware of the insert cursor but the lock on the table prevents python from writing into it.
Ok, now that I used the Python window in ArcMap new error has occured. Could it be because the "czk" is a list?
Here is the code:
czk=[413960.0, 47130.0]
cursor = arcpy.da.InsertCursor("C:/GIS/AlJeba/Tocke/Tocke.shp", ("SHAPE@XY"))
for row in czk:
cursor.insertRow(row)
del cursor
And here is the error:
Runtime error Traceback (most recent call last): File "", line 333, in TypeError: argument must be sequence of values