2 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
3 <html><head><title>Python: module skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.gcode_step</title>
4 </head><body bgcolor="#f0f0f8">
6 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
8 <td valign=bottom> <br>
9 <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="skeinforge_application.html"><font color="#ffffff">skeinforge_application</font></a>.<a href="skeinforge_application.skeinforge_plugins.html"><font color="#ffffff">skeinforge_plugins</font></a>.<a href="skeinforge_application.skeinforge_plugins.craft_plugins.html"><font color="#ffffff">craft_plugins</font></a>.<a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.html"><font color="#ffffff">export_plugins</font></a>.gcode_step</strong></big></big> ($Date: 2008/21/04 $)</font></td
10 ><td align=right valign=bottom
11 ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/export_plugins/gcode_step.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/export_plugins/gcode_step.py</a></font></td></tr></table>
13 <a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.binary_16_byte.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.gcode_time_segment.html">Next</a> / <a href="contents.html">Contents</a>
16 Gcode step is an export plugin to convert gcode from float position to number of steps.<br>
18 An export plugin is a script in the export_plugins folder which has the getOutput function, the globalIsReplaceable variable and if it's output is not replaceable, the writeOutput function. It is meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin a lower case name.<br>
20 The getOutput function of this script takes a gcode text and returns it with the positions converted into number of steps. The writeOutput function of this script takes a gcode text and writes that with the positions converted into number of steps.<br>
23 <a href="#Settings">Settings</a><br />
24 <a href="#Add Feed Rate Even When Unchanging">Add Feed Rate Even When Unchanging</a><br />
25 <a href="#Add Space Between Words">Add Space Between Words</a><br />
26 <a href="#Add Z Even When Unchanging">Add Z Even When Unchanging</a><br />
27 <a href="#Feed Rate Step Length">Feed Rate Step Length</a><br />
28 <a href="#Offset">Offset</a><br />
29 <a href="#X Offset">X Offset</a><br />
30 <a href="#Y Offset">Y Offset</a><br />
31 <a href="#Z Offset">Z Offset</a><br />
32 <a href="#Step Length">Step Length</a><br />
33 <a href="#E Step Length">E Step Length</a><br />
34 <a href="#Radius Rate Step Length">Radius Rate Step Length</a><br />
35 <a href="#X Step Length">X Step Length</a><br />
36 <a href="#Y Step Length">Y Step Length</a><br />
37 <a href="#Z Step Length">Z Step Length</a><br />
39 <a name="Settings" id="Settings"></a><h2>Settings</h2>
42 <a name="Add Feed Rate Even When Unchanging" id="Add Feed Rate Even When Unchanging"></a><h3>Add Feed Rate Even When Unchanging</h3>
46 When selected, the feed rate will be added even when it did not change from the previous line.<br>
48 <a name="Add Space Between Words" id="Add Space Between Words"></a><h3>Add Space Between Words</h3>
52 When selected, a space will be added between each gcode word.<br>
54 <a name="Add Z Even When Unchanging" id="Add Z Even When Unchanging"></a><h3>Add Z Even When Unchanging</h3>
58 When selected, the z word will be added even when it did not change.<br>
60 <a name="Feed Rate Step Length" id="Feed Rate Step Length"></a><h3>Feed Rate Step Length</h3>
62 Default is 0.1 millimeters/second.<br>
64 Defines the feed rate step length.<br>
66 <a name="Offset" id="Offset"></a><h3>Offset</h3>
68 <a name="X Offset" id="X Offset"></a><h4>X Offset</h4>
72 Defines the X Offset.<br>
74 <a name="Y Offset" id="Y Offset"></a><h4>Y Offset</h4>
78 Defines the Y Offset.<br>
80 <a name="Z Offset" id="Z Offset"></a><h4>Z Offset</h4>
84 Defines the Z Offset.<br>
86 <a name="Step Length" id="Step Length"></a><h3>Step Length</h3>
88 <a name="E Step Length" id="E Step Length"></a><h4>E Step Length</h4>
90 Default is 0.1 millimeters.<br>
92 Defines the E extrusion distance step length.<br>
94 <a name="Radius Rate Step Length" id="Radius Rate Step Length"></a><h3>Radius Rate Step Length</h3>
96 Default is 0.1 millimeters/second.<br>
98 Defines the radius step length.<br>
100 <a name="X Step Length" id="X Step Length"></a><h4>X Step Length</h4>
102 Default is 0.1 millimeters.<br>
104 Defines the X axis step length.<br>
106 <a name="Y Step Length" id="Y Step Length"></a><h4>Y Step Length</h4>
108 Default is 0.1 millimeters.<br>
110 Defines the Y axis step length.<br>
112 <a name="Z Step Length" id="Z Step Length"></a><h4>Z Step Length</h4>
114 Default is 0.01 millimeters.<br>
116 Defines the Z axis step length.</tt>
120 <a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.binary_16_byte.html">Previous</a> / <a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.gcode_time_segment.html">Next</a> / <a href="contents.html">Contents</a>
125 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
126 <tr bgcolor="#aa55cc">
127 <td colspan=3 valign=bottom> <br>
128 <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
130 <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
131 <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br>
132 <a href="fabmetheus_utilities.archive.html">fabmetheus_utilities.archive</a><br>
133 <a href="cStringIO.html">cStringIO</a><br>
134 </td><td width="25%" valign=top><a href="fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret.html">fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret</a><br>
135 <a href="fabmetheus_utilities.gcodec.html">fabmetheus_utilities.gcodec</a><br>
136 <a href="os.html">os</a><br>
137 </td><td width="25%" valign=top><a href="fabmetheus_utilities.settings.html">fabmetheus_utilities.settings</a><br>
138 <a href="skeinforge_application.skeinforge_utilities.skeinforge_polyfile.html">skeinforge_application.skeinforge_utilities.skeinforge_polyfile</a><br>
139 <a href="skeinforge_application.skeinforge_utilities.skeinforge_profile.html">skeinforge_application.skeinforge_utilities.skeinforge_profile</a><br>
140 </td><td width="25%" valign=top><a href="sys.html">sys</a><br>
141 </td></tr></table></td></tr></table><p>
142 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
143 <tr bgcolor="#ee77aa">
144 <td colspan=3 valign=bottom> <br>
145 <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
147 <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
148 <td width="100%"><dl>
149 <dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.gcode_step.html#GcodeStepRepository">GcodeStepRepository</a>
150 </font></dt><dt><font face="helvetica, arial"><a href="skeinforge_application.skeinforge_plugins.craft_plugins.export_plugins.gcode_step.html#GcodeStepSkein">GcodeStepSkein</a>
153 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
154 <tr bgcolor="#ffc8d8">
155 <td colspan=3 valign=bottom> <br>
156 <font color="#000000" face="helvetica, arial"><a name="GcodeStepRepository">class <strong>GcodeStepRepository</strong></a></font></td></tr>
158 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
159 <td colspan=2><tt>A class to handle the export settings.<br> </tt></td></tr>
161 <td width="100%">Methods defined here:<br>
162 <dl><dt><a name="GcodeStepRepository-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set the default settings, execute title & settings fileName.</tt></dd></dl>
164 <dl><dt><a name="GcodeStepRepository-execute"><strong>execute</strong></a>(self)</dt><dd><tt>Convert to gcode step button has been clicked.</tt></dd></dl>
166 </td></tr></table> <p>
167 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
168 <tr bgcolor="#ffc8d8">
169 <td colspan=3 valign=bottom> <br>
170 <font color="#000000" face="helvetica, arial"><a name="GcodeStepSkein">class <strong>GcodeStepSkein</strong></a></font></td></tr>
172 <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
173 <td colspan=2><tt>A class to convert gcode into 16 byte binary segments.<br> </tt></td></tr>
175 <td width="100%">Methods defined here:<br>
176 <dl><dt><a name="GcodeStepSkein-__init__"><strong>__init__</strong></a>(self)</dt></dl>
178 <dl><dt><a name="GcodeStepSkein-addCharacterInteger"><strong>addCharacterInteger</strong></a>(self, character, lineStringIO, offset, splitLine, stepLength)</dt><dd><tt>Add a character and integer to line string.</tt></dd></dl>
180 <dl><dt><a name="GcodeStepSkein-addLine"><strong>addLine</strong></a>(self, line)</dt><dd><tt>Add a line of text and a newline to the output.</tt></dd></dl>
182 <dl><dt><a name="GcodeStepSkein-addStringToLine"><strong>addStringToLine</strong></a>(self, lineStringIO, wordString)</dt><dd><tt>Add a character and integer to line string.</tt></dd></dl>
184 <dl><dt><a name="GcodeStepSkein-getCraftedGcode"><strong>getCraftedGcode</strong></a>(self, repository, gcodeText)</dt><dd><tt>Parse gcode text and store the gcode.</tt></dd></dl>
186 <dl><dt><a name="GcodeStepSkein-parseLine"><strong>parseLine</strong></a>(self, line)</dt><dd><tt>Parse a gcode line.</tt></dd></dl>
188 </td></tr></table></td></tr></table><p>
189 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
190 <tr bgcolor="#eeaa77">
191 <td colspan=3 valign=bottom> <br>
192 <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
194 <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
195 <td width="100%"><dl><dt><a name="-getCharacterIntegerString"><strong>getCharacterIntegerString</strong></a>(character, offset, splitLine, stepLength)</dt><dd><tt>Get a character and integer string.</tt></dd></dl>
196 <dl><dt><a name="-getFloatFromCharacterSplitLine"><strong>getFloatFromCharacterSplitLine</strong></a>(character, splitLine)</dt><dd><tt>Get the float after the first occurence of the character in the split line.</tt></dd></dl>
197 <dl><dt><a name="-getNewRepository"><strong>getNewRepository</strong></a>()</dt><dd><tt>Get new repository.</tt></dd></dl>
198 <dl><dt><a name="-getOutput"><strong>getOutput</strong></a>(gcodeText, repository<font color="#909090">=None</font>)</dt><dd><tt>Get the exported version of a gcode file.</tt></dd></dl>
199 <dl><dt><a name="-main"><strong>main</strong></a>()</dt><dd><tt>Display the export dialog.</tt></dd></dl>
200 <dl><dt><a name="-writeOutput"><strong>writeOutput</strong></a>(fileName, gcodeText<font color="#909090">=''</font>)</dt><dd><tt>Write the exported version of a gcode file.</tt></dd></dl>
201 </td></tr></table><p>
202 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
203 <tr bgcolor="#55aa55">
204 <td colspan=3 valign=bottom> <br>
205 <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
207 <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
208 <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br>
209 <strong>__date__</strong> = '$Date: 2008/21/04 $'<br>
210 <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br>
211 <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)<br>
212 <strong>globalIsReplaceable</strong> = True</td></tr></table><p>
213 <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
214 <tr bgcolor="#7799ee">
215 <td colspan=3 valign=bottom> <br>
216 <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr>
218 <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td>
219 <td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table>