Click or drag to resize

Utility Methods

The Utility type exposes the following members.

Methods
 NameDescription
Public methodCreateFormat 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.
Public methodCreateIncremental Creates an IncrementalVariable output object for controlling auto-incrementing code output. Incremental variables automatically increment by a step value on each format call, useful for sequencing operations.
Public methodCreateModal Creates a ModalVariable output object for controlling modal state code output. Modal variables output a value only when it changes from the previous state, reducing redundant code in NC files.
Public methodCreateReference Creates a ReferenceVariable output object for controlling conditional code output based on reference comparison. Reference variables output a value only when it differs from a reference value, optimizing NC file size.
Public methodCreateVariable Creates a SimpleVariable output object for controlling formatted code output. Simple variables format numeric values using the specified format and can be enabled/disabled for conditional output.
Public methodFileChecksum Calculates the MD5 checksum hash for file integrity verification.
Public methodPostprocessorFileName Gets the file name of the postprocessor (without directory path).
Public methodPostprocessorFullPath Gets the full file path of the postprocessor including directory and file name.
Public methodPostprocessorLocation Gets the directory location path of the postprocessor.
Public methodWriteFile(String, String, String, String) Writes the specified content to a file with default options.
Public methodWriteFile(String, String, String, String, String, String) Writes the specified content to a file with advanced options including custom folder paths and text encoding.
Top
See Also