# Python: module skeinforge_application.skeinforge_plugins.craft_plugins.lift

skeinforge_application.skeinforge_plugins.craft_plugins.lift ($Date: 2008/02/05 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/lift.py

Previous / Next / Contents

`
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.
Operation
Settings
Cutting Lift over Layer Step
Clearance above Top
Examples
`

## Operation

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.

## Settings

### Cutting Lift over Layer Step

Default is minus 0.5, because the end mill is the more common tool.
Defines 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 height, 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.

### Clearance above Top

Default is 5 millimeters.
Defines 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.

## Examples

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

Previous / Next / Contents

Modules

``

__init__ fabmetheus_utilities.archive fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret | fabmetheus_utilities.gcodec fabmetheus_utilities.settings skeinforge_application.skeinforge_utilities.skeinforge_craft | skeinforge_application.skeinforge_utilities.skeinforge_polyfile skeinforge_application.skeinforge_utilities.skeinforge_profile sys |

Classes

``

LiftRepository
LiftSkein

class LiftRepository
`` | `A class to handle the lift settings.`

Methods defined here:

__init__(self)
  `Set the default settings, execute title & settings 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.`

setMaximumZ(self)
  `Set maximum z.`

Functions

``

getCraftedText(fileName, text='', liftRepository=None)
  `Lift the preface file or text.`

getCraftedTextFromText(gcodeText, liftRepository=None)
  `Lift the preface gcode text.`

getNewRepository()
  `Get new repository.`

main()
  `Display the lift dialog.`

writeOutput(fileName, shouldAnalyze=True)
  `Lift the carving of a gcode file.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __date__ = '$Date: 2008/02/05 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)