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

Home is a script to home the nozzle.
 
The default 'Activate Home' checkbox is on.  When it is on, the functions described below will work, when it is off, the functions
will not be called.
 
At the beginning of a each layer, home will add the commands of a gcode script called homing.text, if it exists.
 
To run home, in a shell which home is in type:
> python home.py
 
The following examples homes the files Screw Holder Bottom.gcode & Screw Holder Bottom.stl.  The examples are run in a
terminal in the folder which contains Screw Holder Bottom.gcode, Screw Holder Bottom.stl and home.py.  The home function
will home if the 'Activate Home' checkbox is on.  The functions writeOutput and getChainGcode check to see if the text
has been homed, if not they call the getChainGcode in fillet.py to fillet the text; once they have the
filleted text, then they home.
 
 
> python home.py
This brings up the dialog, after clicking 'Home', the following is printed:
File Screw Holder Bottom.stl is being chain homed.
The homed file is saved as Screw Holder Bottom_home.gcode
 
 
> python home.py Screw Holder Bottom.stl
File Screw Holder Bottom.stl is being chain homed.
The homed file is saved as Screw Holder Bottom_home.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 home
>>> home.main()
This brings up the home dialog.
 
 
>>> home.writeOutput()
File Screw Holder Bottom.stl is being chain homed.
The homed file is saved as Screw Holder Bottom_home.gcode
 
 
>>> home.getGcode("
( GCode generated by May 8, 2008 carve.py )
( Extruder Initialization )
..
many lines of gcode
..
")
Many line of homed gcode.
 
>>> home.getChainGcode("
( GCode generated by May 8, 2008 carve.py )
( Extruder Initialization )
..
many lines of gcode
..
")
Many line of homed gcode.

 
Modules
       
__init__
skeinforge_tools.analyze
cStringIO
skeinforge_tools.skeinforge_utilities.euclidean
skeinforge_tools.craft_plugins.fillet
skeinforge_tools.skeinforge_utilities.gcodec
skeinforge_tools.skeinforge_utilities.interpret
math
os
skeinforge_tools.polyfile
skeinforge_tools.skeinforge_utilities.preferences
sys
time

 
Classes
       
HomePreferences
HomeSkein

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

 
class HomeSkein
    A class to home a skein of extrusions.
 
  Methods defined here:
__init__(self)
addFloat(self, begin, end)
Add dive to the original height.
addHomeTravel(self, splitLine)
Add the home travel gcode.
addHopUp(self, location)
Add hop to highest point.
parseGcode(self, gcodeText, homePreferences)
Parse gcode text and store the home gcode.
parseInitialization(self, homePreferences)
Parse gcode initialization and store the parameters.
parseLine(self, line)
Parse a gcode line and add it to the bevel gcode.

 
Functions
       
getChainGcode(fileName, gcodeText, homePreferences=None)
Home a gcode linear move text.  Chain home the gcode if it is not already homed.
getGcode(gcodeText, homePreferences=None)
Home a gcode linear move text.
main(hashtable=None)
Display the home dialog.
writeOutput(fileName='')
Home a gcode linear move file.  Chain home the gcode if it is not already homed. If no fileName is specified, home the first unmodified gcode file in this folder.

 
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)