 | 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: 14.5.1+cea593b982d79fcd8924a2e3fdf7aefc7fb02118
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