setFormulaParameterValues(formula, params )

Sepasoft MES Module Suite

setFormulaParameterValues(formula, params ) 

Method on Ignition.mes.batch.formula
Changes the formula parameter values on the passed in formula object for the given parameter path.
Note Version specific: MES 3,81.11 RC1 and later.

Returns:

No return value.

Parameters

formula: BatchFormula
The formula object to set the parameter value for. A property will be added directly to the object.

parameterPath: String
Parameter path.

Python
params = {}
for p in range(phases):
	for param in range(parameters):
		paramPath = '/{}:P' + str((p+1)*2-1) + '.' + str(param)
		params[paramPath] = system.mes.batch.formula.createFormulaParameterDictionary(paramValue='123', readOnly=True, visible=True, sticky=False)

system.mes.batch.formula.setFormulaParameterValues(
	formula, 
	params
)





















Sepasoft MES Module Suite