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

Lift is a script to change the altitude of a gcode file.

Lift will change the altitude of the cutting tool when it is on so that it will cut through the slab at the correct altitude. It will also lift the gcode when the tool is off so that the cutting tool will clear the top of the slab.

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

The 'Cutting Lift over Layer Step' is the ratio of the amount the cutting tool will be lifted over the layer step. If whittle is off the layer step will be the layer thickness, if it is on, it will be the layer step from the whittle gcode. If the cutting tool is like an end mill, where the cutting happens until the end of the tool, then the 'Cutting Lift over Layer Step' should be minus 0.5, so that the end mill cuts to the bottom of the slab. If the cutting tool is like a laser, where the cutting happens around the focal point. the 'Cutting Lift over Layer Step' should be zero, so that the cutting action will be focused in the middle of the slab. The default is minus 0.5, because the end mill is the more common tool.

The 'Clearance above Top' is the distance above the top of the slab the cutting tool will be lifted when will tool is off so that the cutting tool will clear the top of the slab. The default is 5 mm.

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


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


> python lift.py Screw Holder Bottom.stl
The lift tool is parsing the file:
Screw Holder Bottom.stl
..
The lift tool has created the file:
.. Screw Holder Bottom_lift.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 lift
>>> lift.main()
This brings up the lift dialog.


>>> lift.writeOutput()
The lift tool is parsing the file:
Screw Holder Bottom.stl
..
The lift tool has created the file:
.. Screw Holder Bottom_lift.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
       
LiftRepository
LiftSkein

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

 
class LiftSkein
    A class to lift a skein of extrusions.
 
  Methods defined here:
__init__(self)
addPreviousInactiveMovementLineIfNecessary(self)
Add the previous inactive movement line if necessary.
getCraftedGcode(self, liftRepository, gcodeText)
Parse gcode text and store the lift gcode.
getLinearMove(self, line, location, splitLine)
Get the linear move.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the lift skein.

 
Functions
       
getCraftedText(fileName, text='', liftRepository=None)
Lift the preface file or text.
getCraftedTextFromText(gcodeText, liftRepository=None)
Lift the preface gcode text.
getRepositoryConstructor()
Get the repository constructor.
main()
Display the lift dialog.
writeOutput(fileName='')
Lift the carving of a gcode file.

 
Data
        __author__ = 'Enrique Perez (perez_enrique@yahoo.com)'
__date__ = '$Date: 2008/28/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)