Sepasoft MES Module Suite
setFormulaParameterFields(formula, fields)
Method on Ignition.mes.batch.formula
Bulk updates all available fields for multiple formulas.
Returns:
No return value.
Parameters
formula: BatchFormula
The formula object to get the parameter maximum value for. A property will be added directly to the object.
fields: String
A python dictionary of formula fields. The key should be the item path, the value should be a dictionary of fields from system.mes.batch.createFormulaParameterDictionary.
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