Sunday, January 26, 2014

ArcGIS Python Window or PyScripter ?

ArcGIS Python Window or PyScripter ?

Developing a custom Geo-Processing tool / toolbox, Question arises that what software / environment to use??




Well Coding in Arcgis utility gives the advantage of telling the error at the runtime as you write code, it is good for those who are experts and write complete code in one go, but for starters i recommend using wither Pyscripter, IDLE, NotePad or NotePad++. You can write whole code in this and then check it in ArcGIS. How ?

You can create the toolbox by right clicking in folder where you want your toolbox to be created in Arc Catalog and then choose your required toolbox (pyt or tbx)
(for Difference in pyt and tbx click here)


After Creating the tool right click that and click on add script and Add the Script file which you previously created (Note Pad file containing code and saved as .py)
Now if the script file contains an error it will appear a red mark on tool icon in arc catalog.
Also you can check it by right clicking the tool and clicking Check Syntax It will tell the error and its line number.

No comments:

Post a Comment