Click or drag to resize

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.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.2.1+e3fd5885edfa7211ba46258e0eed5ac221a54381
Syntax
ReferenceVariable CreateReference(
	Object formatDescriptor,
	Object shaper
)

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