Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I have the following problem. I have created a python script, which output should be a list of values (res[i]=*something*). Now I would like to create a script in my toolbox so i could use it from modelbuilder or arcmap. However, I dont know how to set the Data type of the Output variable in the Script properties and I am also not sure whether there shouldn be something like arcpy.SetParameterAsText(5,res) at the end of my script.

enter image description here

Here are my questions:

  1. How to force my script to give results in the form of list of values (vector)?
  2. Do I need to add some code at the end of my script so it will know what the output is? If yes how?
  3. What data type should I use in the parameter properties for the output if I want it to be a list of values (could also be a table)?

Thanks

share|improve this question
    
Could we see your code? Or at least parts related to input/output? –  Barbarossa Sep 25 '13 at 13:06
    
It would also be wery helpfull if I could export the list od values (vector) into an csv or txt file. Do you know how? –  user21816 Sep 25 '13 at 13:10

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.