1<?xml version="1.0" encoding="UTF-8"?>
2
3<inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
4    <name>Engraving</name>
5    <id>ru.cnc-club.filter.gcodetools_engraving</id>
6    <param name='active-tab' type="notebook">
7
8        <page name='engraving' gui-text='Engraving'>
9            <param name="engraving-sharp-angle-tollerance" type="float" precision="5" min="150" max="180" gui-text="Smooth convex corners between this value and 180 degrees:">175</param>
10            <param name="engraving-max-dist" type="float" precision="5" min="0" max="1000" gui-text="Maximum distance for engraving (mm/inch):">10</param>
11            <param name="engraving-newton-iterations" type="int" min="2" max="10" gui-text="Accuracy factor (2 low to 10 high):">4</param>
12            <param name="engraving-draw-calculation-paths" type="bool" gui-text="Draw additional graphics to see engraving path">false</param>
13
14            <label xml:space="preserve">
15This function creates path to engrave letters or any shape with sharp angles.
16Cutter's depth as a function of radius is defined by the tool.
17Depth may be any Python expression. For instance:
18
19cone....(45 degrees)......................: w
20cone....(height/diameter=10/3)..: 10*w/3
21sphere..(radius r)...........................: math.sqrt(max(0,r**2-w**2))
22ellipse.(minor axis r, major 4r).....: math.sqrt(max(0,r**2-w**2))*4</label>
23        </page>
24
25        <page name='options' gui-text='Options'>
26            <param name="Zscale" type="float" precision="5" min="-100000" max="100000" gui-text="Scale along Z axis:">1</param>
27            <param name="Zoffset" type="float" precision="5" min="-100000" max="100000" gui-text="Offset along Z axis:">0.0</param>
28            <param name="auto_select_paths" type="bool" gui-text="Select all paths if nothing is selected">true</param>
29            <param name="min-arc-radius" type="float" precision="5" min="-1000" max="1000" gui-text="Minimum arc radius:">0.05</param>
30            <param name="comment-gcode" type="string" gui-text="Comment Gcode:"></param>
31            <param name="comment-gcode-from-properties" type="bool" gui-text="Get additional comments from object's properties">false</param>
32
33        </page>
34
35        <page name='preferences' gui-text='Preferences'>
36            <param name="filename" type="string" gui-text="File:">output.ngc</param>
37            <param name="add-numeric-suffix-to-filename" type="bool" gui-text="Add numeric suffix to filename">true</param>
38
39            <param name="directory" type="string" gui-text="Directory:">/home</param>
40
41            <param name="Zsafe" type="float" precision="5" min="-1000" max="1000" gui-text="Z safe height for G00 move over blank:">5</param>
42            <param name="unit" type="optiongroup" appearance="combo" gui-text="Units (mm or in):">
43                <option value="G21 (All units in mm)">mm</option>
44                <option value="G20 (All units in inches)">in</option>
45            </param>
46            <param name="postprocessor" type="optiongroup" appearance="combo" gui-text="Post-processor:">
47                <option context="GCode postprocessor" value=" ">None</option>
48                <option value="parameterize();">Parameterize Gcode</option>
49                <option value="flip(y);parameterize();">Flip y axis and parameterize Gcode</option>
50                <option value="round(4);">Round all values to 4 digits</option>
51                <option value='regex("G01 Z([0-9\.\-]+).*\(Penetrate\)", lambda match: "G00 Z%f (Fast pre-penetrate)\n%s" %(float(match.group(1))+5, match.group(0)));'>Fast pre-penetrate</option>
52            </param>
53            <param name="postprocessor-custom" type="string" gui-text="Additional post-processor:"></param>
54
55
56            <param name="create-log" type="bool" gui-text="Generate log file">false</param>
57            <param name="log-filename" type="string" gui-text="Full path to log file:"></param>
58
59        </page>
60
61        <page name='help' gui-text='Help'>
62            <label xml:space="preserve">
63Gcodetools plug-in:
64Converts paths to Gcode (using circular interpolation), makes offset paths and engraves sharp corners using cone cutters.
65This plug-in calculates Gcode for paths using circular interpolation or linear motion when needed.
66
67Tutorials, manuals and support can be found at
68English support forum:
69    http://www.cnc-club.ru/gcodetools
70
71and Russian support forum:
72    http://www.cnc-club.ru/gcodetoolsru
73
74Credits: Nick Drobchenko, Vladimir Kalyaev, John Brooker, Henry Nicolas, Chris Lusby Taylor.
75
76Gcodetools ver. 1.7
77</label>
78
79        </page>
80
81    </param>
82    <effect>
83        <object-type>path</object-type>
84        <effects-menu>
85            <submenu name="Gcodetools"/>
86        </effects-menu>
87    </effect>
88    <script>
89        <command location="inx" interpreter="python">gcodetools.py</command>
90    </script>
91</inkscape-extension>
92