Python: module skeinforge_application.skeinforge_plugins.craft_plugins.flow

skeinforge_application.skeinforge_plugins.craft_plugins.flow ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/skeinforge_application/skeinforge_plugins/craft_plugins/flow.py

Previous / Next / Contents

`
The flow script sets the flow rate by writing the M108 gcode.
Operation
Settings
Flow Rate
Examples
`

## Operation

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

## Settings

### Flow Rate

Default is 210.
Defines the flow rate which will be written following the M108 command. The flow rate is usually a PWM setting, but could be anything, like the rpm of the tool or the duty cycle of the tool.

## Examples

The following examples flow the file Screw Holder Bottom.stl. The examples are run in a terminal in the folder which contains Screw Holder Bottom.stl and flow.py.
> python flow.py
This brings up the flow dialog.
> python flow.py Screw Holder Bottom.stl
The flow tool is parsing the file:
Screw Holder Bottom.stl
..
The flow tool has created the file:
.. Screw Holder Bottom_flow.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 flow
>>> flow.main()
This brings up the flow dialog.
>>> flow.writeOutput('Screw Holder Bottom.stl')
The flow tool is parsing the file:
Screw Holder Bottom.stl
..
The flow tool has created the file:
.. Screw Holder Bottom_flow.gcode

Previous / Next / Contents

Modules
`` |  |
__init__ fabmetheus_utilities.archive fabmetheus_utilities.euclidean | 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
`` |  | FlowRepository FlowSkein
class FlowRepository
`` | `A class to handle the flow settings.`
| Methods defined here: __init__(self) `Set the default settings, execute title & settings fileName.` execute(self) `Flow button has been clicked.`
class FlowSkein
`` | `A class to flow a skein of extrusions.`
| Methods defined here: __init__(self) addFlowRateLineIfNecessary(self) `Add flow rate line.` getCraftedGcode(self, gcodeText, flowRepository) `Parse gcode text and store the flow gcode.` parseInitialization(self) `Parse gcode initialization and store the parameters.` parseLine(self, line) `Parse a gcode line and add it to the flow skein.`

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