 | UtilityCreateVariable Method |
Creates a
SimpleVariable output object for controlling formatted code output.
Simple variables format numeric values using the specified format and can be enabled/disabled for conditional output.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
SyntaxSimpleVariable CreateVariable(
Object formatDescriptor,
Object shaper
)
Function CreateVariable (
formatDescriptor As Object,
shaper As Object
) As SimpleVariable
Parameters
- formatDescriptor Object
- Object defining variable-specific settings (prefix, suffix, force behavior).
- shaper Object
- The reference Format object that defines how values are formatted.
Return Value
SimpleVariable
A new
SimpleVariable object configured with the specified format and shaper.
For example, with prefix="X" and decimal format, formatting 4.5 produces "X4.500".
See Also