Wednesday 25 March 2015

arcgis desktop - How to use ET GeoWizard tools or Xtools Pro in ModelBuilder or Python to automate processing?


Is it possible to use ET GeoWizard or XTools Pro tools in automation of mapping in either in ModelBuilder or Python?



Answer



Yes, I believe it is possible to use both in Python scripts. XTools has some samples in your install directory (mine is an older version and is installed at C:\Program Files (x86)\DataEast\XToolsPro 7.1\Scripts). You need to import the Toolbox. Here is an example (assuming you are on ArcGIS 10 and using arcpy, otherwise use the geoprocessor):


arcpy.ImportToolbox('path_to\XTools Pro.tbx')

arcpy.XToolsPro_(args)

It's been a while since I used ET Geowizards tools in a script, but here is how I'm betting that works (along the same lines as with XTools):


arcpy.ImportToolbox('path_to\ET GeoWizards.tbx')
arcpy.ET_GP(args)

No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...