 | UtilityCreateVariable Method |
Creates the output object that is used to control the output of a code.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
SyntaxSimpleVariable CreateVariable(
Object formatDescriptor,
Object shaper
)
Function CreateVariable (
formatDescriptor As Object,
shaper As Object
) As SimpleVariable
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
SimpleVariable
The SimpleVariable object defined by formatDescriptor and based on the shaper.
var xyzFormat = Utility.CreateFormat({decimals: 3, forceDecimal: true});
var xOutput = Utility.CreateVariable({prefix: "X"}, xyzFormat);
xOutput.Format(4.5);
See Also