Hello,
Im pretty new on Geoprocessing tools and running automatic process in arcmap.
I wanna know if theres a way to run a buffer automatically when new data is found in a db table, layer or anything else i wanna use.
I just created a buffer in the toolbox and i save it, the structure is :
my layer -> buffer tool -> output file.
I save it and im trying to generate the python code to simulate the data will be loaded in that layer (its an example) and then i generate the buffer as a result.
My python code is going like this.
import arcpy
from arcpy import env
import arcgis
arcpy.ImportToolbox("C:\Users\myuser\Documents\ArcGIS\Toolbox","BufferTramosSelected")
arcpy.BufferTramosSelected_BufferTramosSelected()
import time
mins = 0
while mins != 5:
print ">>>", mins
arcpy.BufferTramosSelected_BufferTramosSelected()
time.sleep(30)
mins+=1
So is that correct? or theres another way to do this?
I need suggestions and code (if somebody already do this).
Thanks in advice!