PathScripts.post.refactored_centroid_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_centroid_post.export (   objectslist,
  filename,
  argstring 
)
Postprocess the objects in objectslist to filename.

◆ init_argument_defaults()

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

◆ init_arguments()

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

◆ init_arguments_visible()

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

◆ init_values()

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

Variable Documentation

◆ argument_defaults

dictionary PathScripts.post.refactored_centroid_post.argument_defaults = {}

◆ arguments_visible

dictionary PathScripts.post.refactored_centroid_post.arguments_visible = {}

◆ parser

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

◆ TOOLTIP

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

◆ TOOLTIP_ARGS

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

◆ UNITS

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

◆ values

dictionary PathScripts.post.refactored_centroid_post.values = {}