 | SimpleVariable Interface |
Represents a simple variable in the woodwork automation system.
A simple variable is a basic output control that formats numeric values for NC file output with optional enable/disable state management.
Simple variables apply formatting rules (decimal precision, sign display, zero padding, prefix/suffix decoration) to produce
consistently formatted text strings, enabling straightforward value output without state tracking or conditional logic.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.2.1+e3fd5885edfa7211ba46258e0eed5ac221a54381
Syntaxpublic interface SimpleVariable
Public Interface SimpleVariable
The SimpleVariable type exposes the following members.
Properties| | Name | Description |
|---|
 | Force |
Gets and sets a value indicating whether the variable forces output on every format call.
When true, the formatted value is output; when false (default), the variable respects normal output rules.
Force enables unconditional output regardless of state or conditions.
|
 | 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.
|
Top
Methods| | Name | Description |
|---|
 | Disable |
Disables this variable from producing any output.
When disabled, the Format method returns an empty string regardless of input values.
|
 | Enable |
Enables this variable for output (default condition when variable is created).
When enabled, the variable resumes normal formatting and output behavior.
|
 | Format |
Formats the specified numeric value and returns the formatted text string.
The formatting applies the Format(Double) rules including decimal precision, sign display, zero padding, and prefix/suffix decoration.
|
 | GetCurrent |
Returns the formatted text string representation of the most recently formatted value.
This allows inspecting the current formatted output without processing a new value.
|
 | IsEnable |
Gets a value indicating whether the variable is currently enabled for output.
|
 | Reset |
Forces the output of the formatted text string on the next format call, overriding normal output rules.
This ensures the next Format call produces output regardless of enable/disable state.
|
 | SetPrefix |
Temporarily overrides the prefix text string for subsequent output operations.
|
 | SetSuffix |
Temporarily overrides the suffix text string for subsequent output operations.
|
Top
See Also