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

Wipe is a script to wipe the nozzle.

At the beginning of a layer, depending on the preferences, wipe will move the nozzle with the extruder off to the arrival point, then to the wipe point, then to the departure point, then back to the layer.

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

The "Location Arrival X" preference, is the x coordinate of the arrival location. The "Location Arrival Y" and "Location Arrival Z" preferences are the y & z coordinates of the location. The equivalent "Location Wipe.." and "Location Departure.." preferences are for the wipe and departure locations.

The "Wipe Period (layers)" preference is the number of layers between wipes. Wipe will always wipe just before the first layer, afterwards it will wipe every "Wipe Period" layers. With the default of three, wipe will wipe just before the zeroth layer, the third layer, sixth layer and so on.

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


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


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


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

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

 
Classes
       
WipeRepository
WipeSkein

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

 
class WipeSkein
    A class to wipe a skein of extrusions.
 
  Methods defined here:
__init__(self)
addHop(self, begin, end)
Add hop to highest point.
addWipeTravel(self, splitLine)
Add the wipe travel gcode.
getCraftedGcode(self, gcodeText, wipeRepository)
Parse gcode text and store the wipe gcode.
getLinearMoveWithFeedRate(self, feedRate, location)
Get a linear move line with the feedRate.
parseInitialization(self, wipeRepository)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the bevel gcode.

 
Functions
       
getCraftedText(fileName, text, wipeRepository=None)
Wipe a gcode linear move text.
getCraftedTextFromText(gcodeText, wipeRepository=None)
Wipe a gcode linear move text.
getRepositoryConstructor()
Get the repository constructor.
main()
Display the wipe dialog.
writeOutput(fileName='')
Wipe 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)