 | 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.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
SyntaxModalVariable CreateModal(
Object formatDescriptor,
Object shaper
)
Function CreateModal (
formatDescriptor As Object,
shaper As Object
) As ModalVariable
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