 | UtilityCreateReference Method |
Creates the reference output object that is used to control the output of a code.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
SyntaxReferenceVariable CreateReference(
Object formatDescriptor,
Object shaper
)
Function CreateReference (
formatDescriptor As Object,
shaper As Object
) As ReferenceVariable
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
ReferenceVariable
The object defined by formatDescriptor and based on the shaper.
var ijkFormat = Utility.CreateFormat({decimals:3});
var iOutput = Utility.CreateReference({prefix: "I", forceDecimal}, ijkFormat);
iOutput.format(.001, 0);
iOutput.format(.0001, 0);
See Also