Skip to main content
16 events
when toggle format what by license comment
Jul 11, 2016 at 7:42 history edited PolyGeo CC BY-SA 3.0
deleted 50 characters in body; edited tags
Oct 30, 2013 at 12:22 history edited Kasia CC BY-SA 3.0
deleted 338 characters in body
Oct 30, 2013 at 12:00 history edited artwork21 CC BY-SA 3.0
added 340 characters in body
Oct 30, 2013 at 11:55 vote accept Kasia
Oct 30, 2013 at 11:20 answer added Evil Genius timeline score: 5
Oct 30, 2013 at 10:42 comment added Kasia Content of the Primary script: import arcgisscripting,arcpy from arcpy import env import testFunction testFunction.postphoto() Second script content: import arcgisscripting,arcpy from arcpy import env def postphoto(): gp = arcgisscripting.create() gp.overwriteoutput = 1 gp.addmessage("Hello")
Oct 30, 2013 at 10:18 comment added PolyGeo If you use the edit button to revise your Question with the code you will have MUCH better formatting options than here in Comments.
Oct 30, 2013 at 10:06 comment added PolyGeo I gathered that - I was hoping you could provide some test code that I could quickly test rather than having to write from scratch.
Oct 30, 2013 at 9:57 comment added Kasia It is what I mean by embedding: resources.arcgis.com/en/help/main/10.1/index.html#//…. Primary script imports the second script as a module: "import secondScriptName" and the primary script calls the function from within the second script: secondScriptName.functionName()
Oct 30, 2013 at 9:35 comment added PolyGeo Are you able to post some simple test code to illustrate your coding pattern and the steps you have tried to get this working. The only part that I have a question mark over is the embedding so I thing making that the only variable in two otherwise identical workflows should highlight whether that is the issue.
Oct 30, 2013 at 9:28 history edited PolyGeo
edited tags
Oct 30, 2013 at 9:22 comment added Kasia It is ArcGIS 10.0 and I am using Python Script Tools added to the Toolbox.
Oct 30, 2013 at 9:20 review First posts
Oct 30, 2013 at 9:40
Oct 30, 2013 at 9:07 comment added PolyGeo What version of ArcGIS for Desktop are you using? And are you using Python Script Tools or Python (Only) Toolboxes?
Oct 30, 2013 at 9:07 history edited PolyGeo
edited tags
Oct 30, 2013 at 9:04 history asked Kasia CC BY-SA 3.0