fabex.gcode.gcode_export

fabex.gcode.gcode_export#

Fabex ‘gcodepath.py’ © 2012 Vilem Novak

Generate and Export G-Code based on scene, machine, chain, operation and path settings.

Functions#

export_gcode_path(filename, vertslist, operations)

Exports G-code using the Heeks NC Adopted Library.

Module Contents#

export_gcode_path(filename, vertslist, operations)[source]#

Exports G-code using the Heeks NC Adopted Library.

This function generates G-code from a list of vertices and operations specified by the user. It handles various post-processor settings based on the machine configuration and can split the output into multiple files if the total number of operations exceeds a specified limit. The G-code is tailored for different machine types and includes options for tool changes, spindle control, and various movement commands.

Parameters:
  • filename (str) – The name of the file to which the G-code will be exported.

  • vertslist (list) – A list of mesh objects containing vertex data.

  • operations (list) – A list of operations to be performed, each containing specific parameters for G-code generation.

Returns:

This function does not return a value; it writes the G-code to a file.

Return type:

None