Click or drag to resize

UtilityCreateModal Method

Creates a ModalVariable output object for controlling modal state code output. Modal variables output a value only when it changes from the previous state, reducing redundant code in NC files.

Namespace: Woodwork.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.2.1+e3fd5885edfa7211ba46258e0eed5ac221a54381
Syntax
ModalVariable CreateModal(
	Object formatDescriptor,
	Object shaper
)

Parameters

formatDescriptor  Object
Object defining modal variable settings (prefix, suffix, force behavior).
shaper  Object
The reference Format object that defines how values are formatted.

Return Value

ModalVariable
A new ModalVariable object configured with the specified format and shaper. For example, with prefix="G", width=2, zeropad=true, formatting 0 produces "G00" (output only once until value changes).
See Also