Skeinforge Export
From DEMOZENDIUM
Export is a craft tool to pick an export plugin, add information to the file name, and delete comments.
Contents[hide] |
Operation
The default 'Activate Export' checkbox is on. When it is on, the functions described below will work, when it is off, the functions will not be called.
Settings
Add Descriptive Extension
Default: off
When selected, key profile values will be added as an extension to the gcode file. For example: test.04hx06w_03fill_2cx2r_33EL.gcode
would mean:
- . (Carve section.)
- 04h = 'Layer Thickness (mm):' 0.4
- x
- 06w = 0.6 width i.e. 0.4 times 'Perimeter Width over Thickness (ratio):' 1.5
- _ (Fill section.)
- 03fill = 'Infill Solidity (ratio):' 0.3
- _ (Multiply section; if there is one column and one row then this section is not shown.)
- 2c = 'Number of Columns (integer):' 2
- x
- 2r = 'Number of Rows (integer):' 2.
- _ (Speed section.)
- 33EL = 'Feed Rate (mm/s):' 33.0 and 'Flow Rate Setting (float):' 33.0. If either value has a positive value after the decimal place then this is also shown, but if it is zero it is hidden. Also, if the values differ (which they shouldn't with 5D volumetrics) then each should be displayed separately. For example, 35.2E30L = 'Feed Rate (mm/s):' 35.2 and 'Flow Rate Setting (float):' 30.0.
Add Export Suffix
Default: on
When selected, adds '_export' to the filename before the extension. For example, when enabled and slicing the file '20mm-box.stl', the filename would be '20mm-box_export.gcode', when disabled '20mm-box.gcode'
Add Profile Extension
Default: off
When selected, the current profile will be added to the file extension. For example: test.my_profile_name.gcode
Add Timestamp Extension
Default: off
When selected, the current date and time is added as an extension in format YYYYmmdd_HHMMSS (so it is sortable if one has many files). For example: test.my_profile_name.20110613_220113.gcode
Also Send Output To
Default: empty
Defines the output name for sending to a file or pipe. A common choice is stdout to print the output in the shell screen. Another common choice is stderr. With the empty default, nothing will be done. If the value is anything else, the output will be written to that file name.
Analyze Gcode
Default: on
When selected, the penultimate gcode will be sent to the analyze plugins to be analyzed and viewed.
Comment Choice
Default: 'Delete All Comments'
Do Not Delete Comments
When selected, export will not delete comments. Crafting comments slow down the processing in many firmware types, which leads to pauses and therefore a lower quality print.
Delete Crafting Comments
When selected, export will delete the time consuming crafting comments, but leave the initialization comments. Since the crafting comments are deleted, there are no pauses during extrusion. The remaining initialization comments provide some useful information for the analyze tools. This is also very useful if you tweak your settings or switch between profiles a lot and can't recall which ones you used to slice a file with, because the settings and profile you used are left in the gcode.
Delete All Comments
When selected, export will delete all comments. The comments are not necessary to run a fabricator. Some printers do not support comments at all so the safest way is choose this option.
Export Operations
Default: 'Do Not Change Output'
Export presents the user with a choice of the export plugins in the export_plugins folder. The chosen plugin will then modify (or not) the gcode or translate it into another format.
An export plugin is a script in the export_plugins folder which has the getOutput function, the globalIsReplaceable variable and if its output is not replaceable, the writeOutput function.
Do Not Change Output
No changes will be made to the output.
Binary 16 Byte
This will convert gcode into 16 byte binary segments.
Gcode Step
This will convert gcode from float position to number of steps.
Gcode Time Segment
Will convert gcode from float position to number of steps and time.
Gcode Small
Will remove the comments and the redundant Z and Feed Rate parameters from a gcode file.
File Extension
Default: 'gcode'
Defines the file extension added to the name of the output file. The output file will be named as originalname_export.extension so if you are processing XYZ.stl the output will by default be XYZ_export.gcode
Name of Replace File
Default: 'replace.csv'
When export is exporting the code, if there is a tab separated file with the name of the "Name of Replace File" setting, it will replace the string in the first column by its replacement in the second column. If there is nothing in the second column, the first column string will be deleted, if this leads to an empty line, the line will be deleted. If there are replacement columns after the second, they will be added as extra lines of text. There is an example file replace_example.csv to demonstrate the tab separated format, which can be edited in a text editor or a spreadsheet.
Export looks for the alteration file in the alterations folder in the .skeinforge folder in the home directory. Export does not care if the text file names are capitalized, but some file systems do not handle file name cases properly, so to be on the safe side you should give them lower case names. If it doesn't find the file it then looks in the alterations folder in the skeinforge_plugins folder.
Save Penultimate Gcode
Default: off
When selected, export will save the gcode file with the suffix '_penultimate.gcode' just before it is exported. This is useful because the code after it is exported could be in a form which the viewers can not display well.