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.
Here are my questions:
- How to force my script to give results in the form of list of values (vector)?
- Do I need to add some code at the end of my script so it will know what the output is? If yes how?
- 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