Modal |
The ModalVariable type exposes the following members.
| Name | Description | |
|---|---|---|
| CurrentValue | Returns the formatted text string representation of the current value. This reflects the most recent value that has been processed by the Format method. | |
| Force | Gets and sets a value indicating whether the variable forces output on every format call. When true, the formatted value is output even if it has not changed from the previous value; when false (default), output occurs only when the value changes. Force enables explicit modal group output. | |
| Prefix | Gets and sets the prefix text string prepended to the formatted output value. | |
| Shaper | Gets and sets the Format(Double) object that defines how numeric values are formatted for output. | |
| Suffix | Gets and sets the suffix text string appended to the formatted output value. |
| Name | Description | |
|---|---|---|
| Format | Formats the specified numeric value and returns the formatted text string if the value has changed from the previous call. If the value has not changed and Force is false, returns an empty string to avoid redundant output. This modal behavior reduces NC file size by eliminating repeated modal values. | |
| Reset | Resets the variable to force output on the next format call, overriding normal modal output rules. This ensures the next Format call produces output regardless of whether the value has changed. |