Code

0f566fc7b257f6367edee579519921bf2c391329
[inkscape.git] / share / extensions / gcodetools_all_in_one.inx
1 <?xml version="1.0" encoding="UTF-8"?>
2 <inkscape-extension xmlns="http://www.inkscape.org/namespace/inkscape/extension">
3     <_name>All in one</_name>
4     <id>ru.cnc-club.filter.gcodetools_ptg_area_area_artefacts_engraving_dxfpoints_tools_library_orientation</id>
5         <dependency type="executable" location="extensions">gcodetools.py</dependency>
6         <dependency type="executable" location="extensions">inkex.py</dependency>
7         <param name='active-tab' type="notebook">
9                 <page name='path-to-gcode' _gui-text='Path to Gcode'>   
10                                 <param name="biarc-tolerance" type='float' precision="5" _gui-text='Biarc interpolation tolerance:'>1</param>
11                                 <param name="biarc-max-split-depth" type="int" _gui-text="Maximum splitting depth:">4</param>
12                                 <_param name="help" type="description">
13 Biarc interpolation tolerance is the maximum distance between path and its approximation.
14 The segment will be split into two segments if the distance between path's segment and it's approximation exceeds biarc interpolation tolerance.
15 </_param>
16                 </page>
18                 <page name='area' _gui-text='Area'>     
19                         <param name="max-area-curves" type="int" min="0" max="1000" _gui-text="Maximum area cutting curves:">100</param>
20                         <param name="area-inkscape-radius" type="float" min="-1000" max="1000" _gui-text="Area width:">-10</param>
22                         <_param name="help" type="description">
23 "Create area offset": creates several Inkscape path offsets to fill original path's area up to "Area radius" value. 
25 Outlines start from "1/2 D" up to "Area width" total width with "D" steps where D is taken from the nearest tool definition ("Tool diameter" value).
26 Only one offset will be created if the "Area width" is equal to "1/2 D".
27                         </_param>
28                 </page>         
30                 <page name='area_artefacts' _gui-text='Area artefacts'> 
31                         <param name="area-find-artefacts-diameter" type="float" min="0.01" max="1000" _gui-text="Artefact diameter:">5.0</param>
32                         <param name="area-find-artefacts-action" type="optiongroup" _gui-text="Action:">
33                                 <_option value="mark with an arrow">mark with an arrow</_option>
34                                 <_option value="mark with style">mark with style</_option>
35                                 <_option value="delete">delete</_option>
36                         </param>        
37                         <_param name="help" type="description">
38 Usage: 
39 1. Select all Area Offsets (gray outlines)
40 2. Object/Ungroup (Shift+Ctrl+G)
41 3. Press Apply
43 Suspected small objects will be marked out by colored arrows.
44                         </_param>
45                 </page>         
47                 <page name='engraving' _gui-text='Engraving'>   
48                         <param name="engraving-sharp-angle-tollerance" type="float"  precision="5" min="0" max="180" _gui-text="Sharp angle tolerance:">150</param>
49                         <param name="engraving-max-dist" type="float" precision="5" min="0" max="1000" _gui-text="Maximum distance for engraving:">10</param>
50                         <param name="engraving-newton-iterations" type="int" min="2" max="10" _gui-text="Number of sample points used to calculate distance:">4</param>
51                         <param name="engraving-draw-calculation-paths" type="boolean" _gui-text="Draw additional graphics to debug engraving path:">false</param>
52                         
53                         <_param name="help" type="description">
54 This function creates path to engrave sharp angles.
55 Cutter's shape function is defined by the tool. Some simple shapes:
57 cone....(45 degrees)...........: w
58 cone....(height/diameter=10/3).: 10/3 w
59 sphere..("r" diameter).........: math.sqrt(max(0,r**2-w**2))
60 ellipse.(R1=r and R2=r*4r).....: math.sqrt(max(0,r**2-w**2))*4</_param>
61                 </page>
63                 <page name='dxfpoints' _gui-text='DXF points'>
64                         <_param name="help" type="description">
66 Convert selected objects to drill points (as dxf_import plugin does). Also you can save original shape. Only the start point of each curve will be used.
68 Also you can manually select object, open XML editor (Shift+Ctrl+X) and add or remove XML tag 'dxfpoint' with any value.
69                   </_param>
70                         <param type='optiongroup' name='dxfpoints-action' _gui-text="Convert selection:">
71 <_option value='save'>set as dxfpoint and save shape</_option>
72 <_option value='replace'>set as dxfpoint and draw arrow</_option>
73 <_option value='clear'>clear dxfpoint sign</_option>
74                         </param>
76                 </page>
78                 <page name='tools_library' _gui-text='Tools library'>   
79                         
80                         <param type='optiongroup' name='tools-library-type' _gui-text="Tools type:">
81 <_option value='default tool'>default</_option>
82 <_option value='cylinder cutter'>cylinder</_option>
83 <_option value='cone cutter'>cone</_option>
84 <_option value='plasma cutter'>plasma</_option>
85 <_option value='tangent knife'>tangent knife</_option>
86 <_option value='lathe cutter'>lathe cutter</_option>
88 <_option value='check'>Just check tools</_option>
90                         </param>
91                         
92                         <_param name="help" type="description">
93 Selected tool type fills appropriate default values. You can change these values using the Text tool later on.
95 The topmost (z order) tool in the active layer is used. If there is no tool inside the current layer it is taken from the upper layer.
97 Press Apply to create new tool.
98                         </_param>
99         </page>
101                 <page name='orientation' _gui-text='Orientation'>       
103                         <param name="orientation-points-count" type="optiongroup" _gui-text="Orientation type:">
104 <_option value="2">2-points mode
105 (move and rotate,
106 maintained aspect ratio X/Y)</_option>
107 <_option value="3">3-points mode
108 (move, rotate and mirror, 
109 different X/Y scale)</_option>
110                         </param>
111                         <param name="Zsurface" type="float" precision="5" min="-1000" max="1000" _gui-text="Z surface:">0</param>
112                         <param name="Zdepth" type="float" precision="5" min="-1000" max="1000" _gui-text="Z depth:">-1</param>
113                         <param name="unit" type="enum" _gui-text="Units (mm or in):">
114                                 <item value="G21 (All units in mm)">mm</item>
115                                 <item value="G20 (All units in inches)">in</item>
116                         </param>
118                         <_param name="help" type="description">
119 Orientation points are used to calculate transformation (offset,scale,mirror,rotation in XY plane) of the path.
120 3-points mode only: do not put all three into one line (use 2-points mode instead).
122 You can modify Z surface, Z depth values later using text tool (3rd coordinates).
124 If there are no orientation points inside current layer they are taken from the upper layer.
126 Do not ungroup orientation points! You can select them using double click to enter the group or by Ctrl+Click.
128 Now press apply to create control points (independent set for each layer).
129                         </_param>
130                 </page>
132                 <page name='options' _gui-text='Options'>
133                         <param name="Zscale" type="float" precision="5" min="-100000" max="100000" _gui-text="Scale along Z axis:">1</param>                    
134                         <param name="Zoffset" type="float" precision="5" min="-100000" max="100000" _gui-text="Offset along Z axis:">0.0</param>
135                         <param name="auto_select_paths" type="boolean" _gui-text="Select all paths if nothing is selected">true</param>
136                         <param name="min-arc-radius" type="float" precision="5" min="-1000" max="1000"  _gui-text="Minimum arc radius:">0.05</param>
137                 </page>
139                 <page name='preferences' _gui-text='Preferences'>
140                         <param name="filename" type="string" _gui-text="File:">output.ngc</param>
141                         <param name="add-numeric-suffix-to-filename" type="boolean" _gui-text="Add numeric suffix to filename">true</param>
142                         
143                         <param name="directory" type="string" _gui-text="Directory:">/home</param>
145                         <param name="Zsafe" type="float" precision="5" min="-1000" max="1000" _gui-text="Z safe height for G00 move over blank:">5</param>
146                         <param name="unit" type="enum" _gui-text="Units (mm or in):">
147                                 <item value="G21 (All units in mm)">mm</item>
148                                 <item value="G20 (All units in inches)">in</item>
149                         </param>
150                         <param name="postprocessor" type="enum" _gui-text="Post-processor:">
151                                 <item value=" ">None</item>
152                                 <item value="parameterize();">Parameterize Gcode</item>
153                                 <item value="flip(y);parameterize();">Flip y axis and parameterize Gcode</item>
154                                 <item value="round(4);">Round all values to 4 digits</item>
155                         </param>
156                         <param name="postprocessor-custom" type="string" _gui-text="Additional post-processor:"></param>                        
157                         
159                         <param name="create-log" type="boolean" _gui-text="Generate log file">false</param>                     
160                         <param name="log-filename" type="string" _gui-text="Full path to log file:"></param>                    
161                         
162                 </page>
164                 <page name='help' _gui-text='Help'>
165                         <_param name="fullhelp" type="description">
166 Gcodetools plug-in: converts paths to Gcode (using circular interpolation), makes offset paths and engraves sharp corners using cone cutters. 
167 This plug-in calculates Gcode for paths using circular interpolation or linear motion when needed.
169 Tutorials, manuals and support can be found at
170 English support forum:
171         http://www.cnc-club.ru/gcodetools
172         
173 and Russian support forum:
174         http://www.cnc-club.ru/gcodetoolsru
176 Credits: Nick Drobchenko, Vladimir Kalyaev, John Brooker, Henry Nicolas.
178 Gcodetools ver. 1.6.01
179 </_param>       
181                 </page>
183         </param>        
184     <effect>
185                 <effects-menu>
186                         <submenu _name="Gcodetools"/>
187                 </effects-menu>
188                 <object-type>path</object-type>
189     </effect>
190     <script>
191         <command reldir="extensions" interpreter="python">gcodetools.py</command>
192     </script>
193     
194 </inkscape-extension>