Click or drag to resize

Utility Interface

Represents utility functions in the woodwork automation system. Utility provides helper functionality for creating and managing formatted output variables and file operations. It enables creation of format specifications, simple/modal/incremental/reference variables for NC file generation, and file management operations including writing output files and accessing postprocessor information. Utilities enable standardized code formatting and consistent output handling throughout the manufacturing workflow.

Namespace: Woodwork.Automation
Assembly: WoodworkAutomation (in WoodworkAutomation.dll) Version: 10.1.0+426df26b1ad7b7c97e1fbd6e0980a0fe847fc820
Syntax
public interface Utility

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