skeinforge_tools.craft_plugins.lash ($Date: 2008/21/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/pyRepRap/skeinforge_tools/craft_plugins/lash.py

Lash is a script to partially compensate for the backlash of the tool head.

The lash tool is ported from Erik de Bruijn's 3D-to-5D-Gcode php GPL'd script at:
http://objects.reprap.org/wiki/3D-to-5D-Gcode.php

The default 'Activate Lash' checkbox is off. When it is on, the functions described below will work, when it is off, the functions will not be called.

The 'X Backlash' is the distance the tool head will be lashed in the X direction, the default is 0.2 mm. The 'Y Backlash' is the distance the tool head will be lashed in the Y direction, the default is 0.2 mm. These default values are from the settings in Erik's 3D-to-5D-Gcode, I believe the settings are used on his Darwin reprap.

The following examples lash the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and lash.py.


> python lash.py
This brings up the lash dialog.


> python lash.py Screw Holder Bottom.stl
The lash tool is parsing the file:
Screw Holder Bottom.stl
..
The lash tool has created the file:
.. Screw Holder Bottom_lash.gcode


> python
Python 2.5.1 (r251:54863, Sep 22 2007, 01:43:31)
[GCC 4.2.1 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import lash
>>> lash.main()
This brings up the lash dialog.


>>> lash.writeOutput()
The lash tool is parsing the file:
Screw Holder Bottom.stl
..
The lash tool has created the file:
.. Screw Holder Bottom_lash.gcode

 
Modules
       
__init__
skeinforge_tools.skeinforge_utilities.consecution
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.interpret
skeinforge_tools.meta_plugins.polyfile
skeinforge_tools.skeinforge_utilities.preferences
sys

 
Classes
       
LashRepository
LashSkein

 
class LashRepository
    A class to handle the lash preferences.
 
  Methods defined here:
__init__(self)
Set the default preferences, execute title & preferences fileName.
execute(self)
Lash button has been clicked.

 
class LashSkein
    A class to lash a skein of extrusions.
 
  Methods defined here:
__init__(self)
getCraftedGcode(self, gcodeText, lashRepository)
Parse gcode text and store the lash gcode.
getLashedLine(self, line, location, splitLine)
Get lashed gcode line.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLash(self, line)
Parse a gcode line and add it to the lash skein.

 
Functions
       
getCraftedText(fileName, text, lashRepository=None)
Get a lashed gcode linear move text.
getCraftedTextFromText(gcodeText, lashRepository=None)
Get a lashed gcode linear move text from text.
getRepositoryConstructor()
Get the repository constructor.
main()
Display the lash dialog.
writeOutput(fileName='')
Lash a gcode linear move file.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/21/04 $'
__license__ = 'GPL 3.0'
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

 
Author
        Enrique Perez (perez_enrique@yahoo.com)