![]() ![]() ![]() I have also dragged the Export2Excel tool into a model and export it resulting in the following code: XlsxPath = reportFolder+"earthquakeReport.xlsx" xlsxDatedReport = reportFolderDated+"earthquakeReport_.xlsx".format(datetime.strftime(datetime.now(),"%Y-%m-%d_%H%M")) xList = "DATE MAGNITUDE EPICENTER" arcpy.ImportToolbox("C:/Program Files (x86)/DataEast/XTools Pro/Toolbox/XTools Pro.tbx") arcpy.gp.XToolsGP_Export2Excel(eqPoliciesFC,xList,xlsxPath) # error = "pythonw.exe has stopped working" arcpy.XToolsPro_Export2Excel(eqPoliciesFC,xList,xlsxPath) # error = : 'module' object has no attribute 'XToolsPro_Export2Excel' Everything works fine when I run it as a python script attached to a model in model builder or simply run it directly as a stand alone python script in ArcGIS Desktop. I have tried a few options based upon what I could find online, however I am still getting errors when I try to import and run an XTools Pro tool in python.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |