skeinforge.skeinforge_plugins.craft_plugins.limit ($Date: 2008/28/04 $)
index
/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge/skeinforge_plugins/craft_plugins/limit.py

Previous / Next / Contents


Limit adds Adrian's extruder distance E value to the gcode movement lines, as described at:
http://blog.reprap.org/2009/05/4d-printing.html


Operation
Settings
Examples

Operation


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

Settings


to be written

Examples


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


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


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


>>> limit.writeOutput( 'Screw Holder Bottom.stl' )
The limit tool is parsing the file:
Screw Holder Bottom.stl
..
The limit tool has created the file:
.. Screw Holder Bottom_limit.gcode


Previous / Next / Contents


 
Modules
       
__init__
fabmetheus_utilities.euclidean
fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret
fabmetheus_utilities.gcodec
fabmetheus_utilities.intercircle
math
os
fabmetheus_utilities.settings
skeinforge.skeinforge_utilities.skeinforge_craft
skeinforge.skeinforge_utilities.skeinforge_polyfile
skeinforge.skeinforge_utilities.skeinforge_profile
sys

 
Classes
       
LimitRepository
LimitSkein

 
class LimitRepository
    A class to handle the limit settings.
 
  Methods defined here:
__init__(self)
Set the default settings, execute title & settings fileName.
execute(self)
Limit button has been clicked.

 
class LimitSkein
    A class to limit a skein of extrusions.
 
  Methods defined here:
__init__(self)
getCraftedGcode(self, gcodeText, repository)
Parse gcode text and store the limit gcode.
getLimitedLinearMovement(self, line, splitLine)
Get a limited linear movement.
parseInitialization(self)
Parse gcode initialization and store the parameters.
parseLine(self, lineIndex)
Parse a gcode line and add it to the limit skein.

 
Functions
       
getCraftedText(fileName, gcodeText='', repository=None)
Limit a gcode file or text.
getCraftedTextFromText(gcodeText, repository=None)
Limit a gcode text.
getNewRepository()
Get the repository constructor.
main()
Display the limit dialog.
writeOutput(fileName='')
Limit 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)