Hello Guys.
Small step in Plugin Vertion giant leap for 3D-Printer's kind
Attached is a 3D-Printer's G-Code Importer AND Exporter.
It will turn Sketchup to a Virtual 3D-Printer
Plugin
Version 0.0.9
New in Importer:
Will put a Attribute with the value of speed from the imported G-Code in the
"filament" & "MotorMove" components
Change the Z scale of the "filament" component according to the amount of
extruded filament in the imported G-Code
New in Exporter:
Export to the G-Code the Attribute of speed as was imported by the importer.
Export the Extruded length according to the Z scale of the "filament" component
Version 0.0.8
Added to the exporter the ability to connect "unconnected" components
so now if a component is deleted - the exporter will just put a link to the
first component of the disconnected chain
Version 0.0.7
Now we have a G-Code Exporter of the previously imported G-Code in the plugin menu.
So I changed the name to GcodeTools ... (please delete the old one)
The new exporter is a very simple assuming that in the next versions will be
adding all the needed features to make it usable
[highlight=#ffff40:34kfw3wr]- so please let me know what need's to be fixed!.[/highlight:34kfw3wr]
Version 0.0.6
Added Layers - Each New Z level gets it's one layer
- Using the Sketchup Layer it is easy to hide and unhide Layers of the Gcode
Version 0.0.5
Impruvment to speed by making no shadow hidden edjes of the filament
If you just want to help clean up my begginesrs ruby codeing
you can use this test gcode files Test files
I would like to thenk the guys who helped me allot in the
Developers' Forum at http://sketchucation.com/forums/viewforum.php?f=180
Thank you.
P.S
- Look at the ruby console to see the progress of the importing - every 1000 lines it prints the line count
- In the "Entity Info" you can see the line of G Code that is responsiable for the filament pice
- A move of the motors is also a component with a line inside - so you could hide it by hiding the line inside one of the movements.
My Motivation for writing this Importer:
I am trying to learn about 3D printing while waiting for my printer to arrive.
I was using SketchUp to play with 3D design for many years, so it was natural for me to
make a 3D model with SketchUp - slice it - and see the result.
I made few models, downloaded few from the internet - that was no problem.
Slicing turned out to be much harder.
I tried 3 slicing softwares with different levels of success.
In the process foud out that there are two types of G-Code formats,
and that it is not possible to convert from one type of G-Code to the other.
So I started to write an importer of G-Code for Sketchup.
My intention is that it will be possible to see what the G-Code will look like in a "neutral" environment and will enable the export of G-Code in a "wanted" format
Please follow my work and give any advice you think fit.
Keep in mind it is a work in progress...
Thank you,
David.