 | 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.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
SyntaxIncrementalVariable CreateIncremental(
Object formatDescriptor,
Object shaper
)
Function CreateIncremental (
formatDescriptor As Object,
shaper As Object
) As IncrementalVariable
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