Click or drag to resize

UtilityCreateIncremental Method

Creates an IncrementalVariable output object for controlling auto-incrementing code output. Incremental variables automatically increment by a step value on each format call, useful for sequencing operations.

Namespace: Woodwork.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
Syntax
IncrementalVariable CreateIncremental(
	Object formatDescriptor,
	Object shaper
)

Parameters

formatDescriptor  Object
Object defining incremental variable settings (prefix, suffix, initial value, step increment).
shaper  Object
The reference Format object that defines how values are formatted.

Return Value

IncrementalVariable
A new IncrementalVariable object configured with the specified format and shaper. For example, with first=10 and step=2, successive format calls produce "N10", "N12", "N14", etc.
See Also