PathScripts.post.nccad_post Namespace Reference

Functions

def export (objectslist, filename, argstring)
 

Variables

 cam_file = FreeCAD.ActiveDocument.FileName
 
string HEADER
 
string MACHINE_NAME = """Max Computer GmbH nccad9 MCS/KOSY"""
 
string POSTAMBLE
 
string TOOL_CHANGE
 
string TOOLTIP
 

Function Documentation

◆ export()

def PathScripts.post.nccad_post.export (   objectslist,
  filename,
  argstring 
)
Export the list of objects into a filename.

Parameters
----------
objectslists: list
    List of objects.

filename: str
    Name of the output file ending in `'.knc'`.

Variable Documentation

◆ cam_file

string PathScripts.post.nccad_post.cam_file = FreeCAD.ActiveDocument.FileName

◆ HEADER

string PathScripts.post.nccad_post.HEADER
Initial value:
1= """;Exported by FreeCAD
2;Post Processor: {}
3;CAM file: {}
4;Output Time: {}
5""".format(
6 __name__, cam_file, str(datetime.datetime.now())
7)

◆ MACHINE_NAME

string PathScripts.post.nccad_post.MACHINE_NAME = """Max Computer GmbH nccad9 MCS/KOSY"""

◆ POSTAMBLE

string PathScripts.post.nccad_post.POSTAMBLE
Initial value:
1= """G77 ; Move to release position
2M10 O6.0 ; Stop spindle"""

◆ TOOL_CHANGE

string PathScripts.post.nccad_post.TOOL_CHANGE
Initial value:
1= """G77 ; Move to release position
2M10 O6.0 ; Stop spindle
3M01 Insert tool TOOL
4G76 ; Move to reference point to ensure correct coordinates after tool change
5M10 O6.1 ; Start spindle"""

◆ TOOLTIP

string PathScripts.post.nccad_post.TOOLTIP
Initial value:
1= """
2This is a postprocessor file for the Path workbench. It is used to take
3a pseudo-gcode fragment output by a Path object and output real GCode
4suitable for the Max Computer GmbH nccad9 Computer Numeric Control.
5
6Supported features:
7
8- 3-axis milling
9- manual tool change with tool number as comment
10- spindle speed as comment
11
12!!! gCode files must use the suffix .knc !!!
13
14import nccad_post
15nccad_post.export([object], "/path/to/file.knc", "")
16"""