Postprocessor-Example Python

This is an example of a Postprocessor used for export into python classes, in order to check offsets.

Take care fof config_version. I this value is lower then your basic file, there might have been some change on the config file (e.g. added variables etc.) Ensure to update to the newer version by changing the file manually.

#  Section and variable names must be valid Python identifiers
#      do not use whitespace in names

# do not edit the following section name:
[Version]
    # do not edit the following value:
    config_version = 5

[General]
    output_format = .txt
    output_text = "text for offset algorithm"
    output_type = text

    abs_export = True
    cancel_cc_for_depth = False
    cc_outside_the_piece = True
    export_ccw_arcs_only = False
    max_arc_radius = 10000.0

    code_begin_units_mm = 
    code_begin_units_in = 
    code_begin_prog_abs =
    code_begin_prog_inc = 
    code_begin = 
    code_end = 

[Number_Format]
    pre_decimals = 4
    post_decimals = 9
    decimal_separator = .
    pre_decimal_zero_padding = False
    post_decimal_zero_padding = False
    signed_values = False

[Line_Numbers]
    use_line_nrs = False
    line_nrs_begin = 10
    line_nrs_step = 10

[Program]
    tool_change = 
    feed_change = 
    rap_pos_plane = 
    rap_pos_depth = 
    lin_mov_plane = "LineGeo(Ps=Point(%XS, %YS), Pe=Point(%XE, %YE)),%nl"
    lin_mov_depth = 
    arc_int_cw = "ArcGeo(Ps=Point(%XS, %YS), Pe=Point(%XE, %YE), O= Point(%XO, %YO,), s_ang=radians(%AngS ), e_ang=radians(%AngE),r=%R,direction=%ext),%nl"
    arc_int_ccw = "ArcGeo(Ps=Point(%XS, %YS), Pe=Point(%XE, %YE), O= Point(%XO, %YO,), s_ang=radians(%AngS ), e_ang=radians(%AngE),r=%R,direction=%ext),%nl"
    cutter_comp_off = 
    cutter_comp_left = 
    cutter_comp_right =
    pre_shape_cut = "%nlShapeClass(geos=[%nl"
    post_shape_cut ="]closed=True)%nl"
    comment = 

Related

Wiki: Home
Wiki: Postprocessor Configuration