GCodeRenderGCode Method

Return the G-code corresponding to the current configuration and operations in the provided workpiece.

Definition

Namespace: ShopTools
Assembly: ShopTools (in ShopTools.exe) Version: 25.2429.4649
C#
public static List<string> RenderGCode(
	string filenameBase = "",
	string extension = ""
)

Parameters

filenameBase  String  (Optional)
The pattern to use for the output filename.
extension  String  (Optional)
The pattern to use for the output filename extension.

Return Value

ListString
A string containing G-code instructions for the workpiece and its operations, if present. Otherwise, an empty string.

Remarks

The names of each file are available in the text's regex field \(Filename:(?<filename>[^\)]+)\) and will have the pattern {filenameBase}-{Index}of{Count}-{ToolName}{Extension} where Index is the index of the file within the set, Count is the count of files in the set, ToolName is the name of the selected tool for the series of actions, and Extension is .gcode if not supplied by the caller.

See Also