PathScripts.post.refactored_linuxcnc_post Namespace Reference

Functions

def export (objectslist, filename, argstring)
 
def init_argument_defaults (argument_defaults)
 
def init_arguments (values, argument_defaults, arguments_visible)
 
def init_arguments_visible (arguments_visible)
 
def init_values (values)
 

Variables

dictionary argument_defaults = {}
 
dictionary arguments_visible = {}
 
def parser = init_arguments(values, argument_defaults, arguments_visible)
 
string TOOLTIP
 
def TOOLTIP_ARGS = parser.format_help()
 
string UNITS = "G21"
 
dictionary values = {}
 

Function Documentation

◆ export()

def PathScripts.post.refactored_linuxcnc_post.export (   objectslist,
  filename,
  argstring 
)
Postprocess the objects in objectslist to filename.

◆ init_argument_defaults()

def PathScripts.post.refactored_linuxcnc_post.init_argument_defaults (   argument_defaults)
Initialize which arguments (in a pair) are shown as the default argument.

◆ init_arguments()

def PathScripts.post.refactored_linuxcnc_post.init_arguments (   values,
  argument_defaults,
  arguments_visible 
)
Initialize the shared argument definitions.

◆ init_arguments_visible()

def PathScripts.post.refactored_linuxcnc_post.init_arguments_visible (   arguments_visible)
Initialize which argument pairs are visible in TOOLTIP_ARGS.

◆ init_values()

def PathScripts.post.refactored_linuxcnc_post.init_values (   values)
Initialize values that are used throughout the postprocessor.

Variable Documentation

◆ argument_defaults

dictionary PathScripts.post.refactored_linuxcnc_post.argument_defaults = {}

◆ arguments_visible

dictionary PathScripts.post.refactored_linuxcnc_post.arguments_visible = {}

◆ parser

def PathScripts.post.refactored_linuxcnc_post.parser = init_arguments(values, argument_defaults, arguments_visible)

◆ TOOLTIP

string PathScripts.post.refactored_linuxcnc_post.TOOLTIP
Initial value:
1= """This is a postprocessor file for the Path workbench. It is used to
2take a pseudo-gcode fragment outputted by a Path object, and output
3real GCode suitable for a linuxcnc 3 axis mill. This postprocessor, once placed
4in the appropriate PathScripts folder, can be used directly from inside
5FreeCAD, via the GUI importer or via python scripts with:
6
7import refactored_linuxcnc_post
8refactored_linuxcnc_post.export(object,"/path/to/file.ncc","")
9"""

◆ TOOLTIP_ARGS

def PathScripts.post.refactored_linuxcnc_post.TOOLTIP_ARGS = parser.format_help()

◆ UNITS

string PathScripts.post.refactored_linuxcnc_post.UNITS = "G21"

◆ values

dictionary PathScripts.post.refactored_linuxcnc_post.values = {}