 | UtilityCreateFormat Method |
Creates a
Format object that defines how numeric values are formatted before output to NC files.
The format descriptor object specifies formatting options such as decimal places, sign display, padding, and prefix/suffix text.
Namespace: Woodwork.AutomationAssembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.2.1+e3fd5885edfa7211ba46258e0eed5ac221a54381
SyntaxFormat CreateFormat(
Object formatDescriptor
)
Function CreateFormat (
formatDescriptor As Object
) As Format
Parameters
- formatDescriptor Object
- Object defining the Format configuration (decimal places, padding, prefix/suffix, etc.).
Return Value
Format
A new
Format object configured according to the formatDescriptor.
For example, with decimals=3, trim=false, and forceSign=true, formatting 4.5 produces "+4.500".
See Also