PathScripts.post.opensbp_post Namespace Reference

Functions

def arc (command)
 
def comment (command)
 
def export (objectslist, filename, argstring)
 
def getImperialValue (val)
 
def getMetricValue (val)
 
def linenumber ()
 
def move (command)
 
def parse (pathobj)
 
def spindle (command)
 
def tool_change (command)
 

Variables

string COMMAND_SPACE = ","
 
dictionary CurrentState = {}
 
def GetValue = getMetricValue
 
 now = datetime.datetime.now()
 
bool OUTPUT_COMMENTS = False
 
bool OUTPUT_HEADER = True
 
string POST_OPERATION = """"""
 
string POSTAMBLE = """"""
 
string PRE_OPERATION = """"""
 
string PREAMBLE = """"""
 
 pythonopen = open
 
dictionary scommands
 
bool SHOW_EDITOR = True
 
string TOOL_CHANGE = """"""
 
string TOOLTIP
 
string TOOLTIP_ARGS
 

Function Documentation

◆ arc()

def PathScripts.post.opensbp_post.arc (   command)

◆ comment()

def PathScripts.post.opensbp_post.comment (   command)

◆ export()

def PathScripts.post.opensbp_post.export (   objectslist,
  filename,
  argstring 
)

◆ getImperialValue()

def PathScripts.post.opensbp_post.getImperialValue (   val)

◆ getMetricValue()

def PathScripts.post.opensbp_post.getMetricValue (   val)

◆ linenumber()

def PathScripts.post.opensbp_post.linenumber ( )

◆ move()

def PathScripts.post.opensbp_post.move (   command)

◆ parse()

◆ spindle()

def PathScripts.post.opensbp_post.spindle (   command)

◆ tool_change()

def PathScripts.post.opensbp_post.tool_change (   command)

Variable Documentation

◆ COMMAND_SPACE

string PathScripts.post.opensbp_post.COMMAND_SPACE = ","

◆ CurrentState

dictionary PathScripts.post.opensbp_post.CurrentState = {}

◆ GetValue

def PathScripts.post.opensbp_post.GetValue = getMetricValue

◆ now

PathScripts.post.opensbp_post.now = datetime.datetime.now()

◆ OUTPUT_COMMENTS

bool PathScripts.post.opensbp_post.OUTPUT_COMMENTS = False

◆ OUTPUT_HEADER

bool PathScripts.post.opensbp_post.OUTPUT_HEADER = True

◆ POST_OPERATION

string PathScripts.post.opensbp_post.POST_OPERATION = """"""

◆ POSTAMBLE

string PathScripts.post.opensbp_post.POSTAMBLE = """"""

◆ PRE_OPERATION

string PathScripts.post.opensbp_post.PRE_OPERATION = """"""

◆ PREAMBLE

string PathScripts.post.opensbp_post.PREAMBLE = """"""

◆ pythonopen

PathScripts.post.opensbp_post.pythonopen = open

◆ scommands

dictionary PathScripts.post.opensbp_post.scommands
Initial value:
1= {
2 "G0": move,
3 "G1": move,
4 "G2": arc,
5 "G3": arc,
6 "M6": tool_change,
7 "M3": spindle,
8 "G00": move,
9 "G01": move,
10 "G02": arc,
11 "G03": arc,
12 "M06": tool_change,
13 "M03": spindle,
14 "message": comment,
15}

◆ SHOW_EDITOR

bool PathScripts.post.opensbp_post.SHOW_EDITOR = True

◆ TOOL_CHANGE

string PathScripts.post.opensbp_post.TOOL_CHANGE = """"""

◆ TOOLTIP

string PathScripts.post.opensbp_post.TOOLTIP
Initial value:
1= """
2This is an postprocessor file for the Path workbench. It will output path data
3in a format suitable for OpenSBP controllers like shopbot. This postprocessor,
4once placed in the appropriate PathScripts folder, can be used directly from
5inside FreeCAD, via the GUI importer or via python scripts with:
6
7import Path
8Path.write(object,"/path/to/file.ncc","post_opensbp")
9"""

◆ TOOLTIP_ARGS

string PathScripts.post.opensbp_post.TOOLTIP_ARGS
Initial value:
1= """
2Arguments for opensbp:
3 --comments ... insert comments - mostly for debugging
4 --inches ... convert output to inches
5 --no-header ... suppress header output
6 --no-show-editor ... don't show editor, just save result
7"""