Run Script Tool in batch mode

292
2
05-23-2021 08:58 PM
Labels (1)
CraigPoynter
Occasional Contributor III

I have created a python script which I am applying to a 'script tool'. I have configured the tool but wish to be able to run the tool in batch mode if possible, similar to other 'system tools'. The batch portion relates to input variables for the script to process.

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

So this goes beyond what a "Multivalue" parameter can deal with?

Setting script tool parameters—ArcGIS Pro | Documentation


... sort of retired...
0 Kudos
CraigPoynter
Occasional Contributor III

Trying to achieve similar prompt when 'batching' other system tools, where you have each parameter laid out for inputs:

Param 1Param 2Param 3Param 4
Aa1A;B
Bb2C;D
Cc3E;F
Dd4G;H;I

 

So a list is created for each set of four parameters:

lst = [['A', 'a', '1', 'A;B'],['B', 'b', '2', 'C;D'],['C', 'c', '3', 'E;F'],['D', 'd', '4', 'G;H;I']]

Tool will be distributed, so unsure of inputs to create 'MultiValue' lists.

0 Kudos