 | UtilityCreateIncremental Method |
Creates the incremental output object that is used to control the output of a code.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
SyntaxIncrementalVariable CreateIncremental(
Object formatDescriptor,
Object shaper
)
Function CreateIncremental (
formatDescriptor As Object,
shaper As Object
) As IncrementalVariable
Parameters
- formatDescriptor Object
- The Format object that defines how the value is formatted.
- shaper Object
- The reference Format object for creating the variable.
Return Value
IncrementalVariable
The IncrementalVariable object defined by formatDescriptor and based on the shaper.
var nrStr = Utility.CreateFormat({ prefix: 'N', decimals: 0 });
var nrIncVar = Utility.CreateIncremental({ first: 10, step: 2 }, nrStr);
nrIncVar.Format();
nrIncVar.Format();
See Also