 | UtilityCreateReference Method |
Creates a
ReferenceVariable output object for controlling conditional code output based on reference comparison.
Reference variables output a value only when it differs from a reference value, optimizing NC file size.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
SyntaxReferenceVariable CreateReference(
Object formatDescriptor,
Object shaper
)
Function CreateReference (
formatDescriptor As Object,
shaper As Object
) As ReferenceVariable
Parameters
- formatDescriptor Object
- Object defining reference variable settings (prefix, suffix, force behavior).
- shaper Object
- The reference Format object that defines how values are formatted.
Return Value
ReferenceVariable
A new
ReferenceVariable object configured with the specified format and shaper.
For example, with prefix="I" and decimal format, format(0.001, 0) produces "I0.001", but format(0.0001, 0) produces "" (below tolerance).
See Also