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

Previous / Next / Contents

`
Gcode time segment is an export plugin to convert gcode from float position to number of steps.
An export plugin is a script in the export_plugins folder which has the getOutput function, the globalIsReplaceable variable and if it's output is not replaceable, the writeOutput function. It is meant to be run from the export tool. To ensure that the plugin works on platforms which do not handle file capitalization properly, give the plugin a lower case name.
The getOutput function of this script takes a gcode text and returns it with the positions converted into number of steps and time. The writeOutput function of this script takes a gcode text and writes that with the positions converted into number of steps and time.
Settings
Add Space Between Words
Offset
X Offset
Y Offset
Z Offset
Step
Extrusion Step
Time Step
X Step
Y Step
Z Step
`

## Settings

### Add Space Between Words

Default is on.
When selected, a space will be added between each gcode word.

### Offset

#### X Offset

Default is zero.
Defines the X Offset.

#### Y Offset

Default is zero.
Defines the Y Offset.

#### Z Offset

Default is zero.
Defines the Z Offset.

### Step

### Extrusion Step

Default is 0.01 mm.
Defines the radius step length.

### Time Step

Default is 1 microsecond(mcs).
Defines the time step duration.

#### X Step

Default is 0.1 mm.
Defines the X axis step length.

#### Y Step

Default is 0.1 mm.
Defines the Y axis step length.

#### Z Step

Default is 0.01 mm.
Defines the Z axis step length.

Previous / Next / Contents

Modules
`` |  |
__init__ fabmetheus_utilities.archive cStringIO | fabmetheus_utilities.fabmetheus_tools.fabmetheus_interpret fabmetheus_utilities.gcodec os | fabmetheus_utilities.settings skeinforge_application.skeinforge_utilities.skeinforge_polyfile sys |

Classes
`` |  | GcodeTimeSegmentRepository GcodeTimeSegmentSkein
class GcodeTimeSegmentRepository
`` | `A class to handle the export settings.`
| Methods defined here: __init__(self) `Set the default settings, execute title & settings fileName.` execute(self) `Convert to gcode step button has been clicked.`
class GcodeTimeSegmentSkein
`` | `A class to convert gcode into time segments.`
| Methods defined here: __init__(self) `Initialize.` addCharacterInteger(self, character, lineStringIO, offset, splitLine, step) `Add a character and integer to line string.` addLine(self, line) `Add a line of text and a newline to the output.` addStringToLine(self, lineStringIO, wordString) `Add a character and integer to line string.` getCraftedGcode(self, gcodeText, repository) `Parse gcode text and store the gcode.` parseLine(self, line) `Parse a gcode line.`

Functions
`` |  | getCharacterIntegerString(character, offset, splitLine, step) `Get a character and integer string.` getFloatFromCharacterSplitLine(character, splitLine) `Get the float after the first occurence of the character in the split line.` getNewRepository() `Get the repository constructor.` getOutput(gcodeText, repository=None) `Get the exported version of a gcode file.` main() `Display the export dialog.` writeOutput(fileName, gcodeText='') `Write the exported version of a gcode 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) globalIsReplaceable = True

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