Select to view content in your preferred language

How to change values of a value table using python toolbox?

876
1
11-12-2016 12:31 AM
bibijikemal
Deactivated User

					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
0 Kudos
1 Reply
ClintonDow1
Frequent Contributor

In the getParameterInfo() method, you'll define your parameters as arcpy.Parameter() objects. For the respective parameter of your ValueTable ensure that you are using the 'parameterType=GPValueTable' constructor argument. 

Once you have created the Parameter object with the correct type, you can use the ValueTable's methods such as setColumns(), setRow() and setValue() to alter the values therein. 

See this link for info on creating ValueTable Parameters and this link for the ValueTable documentation

0 Kudos