 | UtilityCreateModal Method |
Creates the modal output object that is used to control the output of a code.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 2.1.25
SyntaxModalVariable CreateModal(
Object formatDescriptor,
Object shaper
)
Function CreateModal (
formatDescriptor As Object,
shaper As Object
) As ModalVariable
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
ModalVariable
The ModalVariable object defined by formatDescriptor and based on the shaper.
var gFormat = Utility.CreateFormat({prefix:"G", decimals:0, width:2, zeropad:true});
var gMotionModal = Utility.CreateModal({force: true}, gFormat);
gMotionModal.Format(0);
See Also