Quantcast
Channel: Forums - Python
Viewing all articles
Browse latest Browse all 2485

GetCount_management seems to crash ArcGis

$
0
0
Not sure if I am posting this in the right forum. Has anyone created an addin that performs a record count? I have an addin that I am trying to create that has a record count at the very start and every time I run the addin Arcmap crashes. The odd part is I can copy and past the same code into the Python window in Arcmap and the code works just fine. This makes me think its something with the addin creation but I dont have an idea of what could be causing it. Machine stats Win 7 32GB RAM Intel i7
Code:

reccount = str(arcpy.GetCount_management ("NullServiceAddresses"))
win32api.MessageBox(0, "Script Starting  " + reccount + " records will be fixed", "Status")

Thank You

Scott Shenberger
GIS Analyst
Tucson Water

Viewing all articles
Browse latest Browse all 2485

Trending Articles