Wednesday, 8 June 2016

arcpy - Creating list of strings as parameter to Python script tool?


I am trying to have a list of strings to pass as parameter to my script:



enter image description here


when I start the script it displays:


enter image description here


With "Add Value' button disabled. What am I missing here?



Answer



Use the "Any Value" data type instead of the "String" data type. I have no idea why multivalue strings don't work, but it's very counterintuitive...


Script properties Script tool GUI


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...