Страница 18 из 32
Inkscape Gcodetools plug-in English support forum
Добавлено: 10 дек 2009, 10:28
Nick

- Generated Gcode in EMC2
| Type | Extension of vector
graphics editor Inkscape |
| Developer | Gcodetools develop team |
| Written in | Python |
| OS | Cross-Platform (Windows, Linux, MacOS) |
| Version | 1.6.03 |
| License | GNU GPL |
| Downloads | 7800+ |
Gcodetools
Gcodetools is a plug-in for Inkscape. It prepares and converts paths from Inkscape to Gcode, using biarc interpolation.
This article is unfinished. You can help cnc-club expanding it.
Screenshots and photos are needed. Please post them at this thread.
Features (для просмотра содержимого нажмите на ссылку)Features

- Preview of the generated Gcode in EMC

- Gcodetools area pocketing

- Gcodetools lathe

- Gcodetools engraving by Rene

- Bears by Durachko
Export to Gcode- Export paths to Gcode
- Using circular (biarc approximation) or straight line interpolation
- Automatic path subdivision to reach defined tolerance
- Multiply tool processing
- Export Gcode in parametric of flat form
- Including personal headers and footers
- Choosing units
- Multi-pass processing
- Numeric suffix is added to generated files to avoid overwriting
Lathe Gcode- Compute trajectories for lathe
- Fine cut
- Define fine cut's depth
- Define fine rounds
- Two different computation functions for fine cut
- Standard axis remapping
Path's area processing- Building area paths
- Area paths could be modified
Engraving- Building trajectory according to the cutter's shape
- Defining different cutter's shapes
Tool's library- Defining different tool's parameters (diameter, feed, depth step, penetration feed, personal Gcode before/after each path, cutters shape, personal tool's changing Gcode)
- Tools can be managed by Inkscape's standard procedures (copy, delete, assigned to different layer)
- Multiply tools processing
Orientation system- Applying scale along any axis
- Apply rotate in the ХY plane
- Apply translation along any axis
- Apply transforms according to arbitrary points
Post-processor- You can create custom post-processor by writing down the commands or choose from the list of default post-processors
- Scale and offset Gcode
- Gcode commands remapping
- Parameterize Gcode
- Round floating point values to specified precision
Verifying tools for the scene- Select and remove small paths (area artefacts)
- Tool's alignment check
- Cutting order check
Plotter cutting- Export to Gcode for plotter with tangential knife. Forth axis A is knife's rotation.
Install (для просмотра содержимого нажмите на ссылку)Install
Windows
Unpack and copy all the files to the following directory Program Files\Inkscape\share\extensions\ and restart inkscape
Linux
Unpack and copy all the files to the following directory /usr/share/inkscape/extensions/ and restart inkscape
Get latest version (для просмотра содержимого нажмите на ссылку)Get latest versions
Latest stable version
Gcodetools 1.7
Older versions(ver 1.5)
(ver 1.5)
(ver 1.4)
(ver 1.2)
Dev-version
You can try the newest development version by getting it from github repository
https://github.com/cnc-club/gcodetools via web interface or using
git clone git@github.com:cnc-club/gcodetools.git .
You'll need to run
python create_inx.py to create inx files. After that install procedure is the same with the stable version.
Translations
Gcodetools is included into Inkscape v 0.49 so it will have native translations as other Inkscape's extensions. Until it is released you can use some self made translation packs:
Develop (для просмотра содержимого нажмите на ссылку)Develop
At the moment following features are being developed:
- Plasma cutter extension
- Turning lathe extension
- Plotter extension
You can help us improve Gcodetools in several ways
- Writing a report / bug report
- Improve help and manuals
- Publish G-codes / SVGs / other code
- Publish photos / videos
- Make a bug report
- Help develop new features
- Suggest a new feature
Tested on (для просмотра содержимого нажмите на ссылку)Tested on
Linux
Ubuntu 9.10 14.04 + inkscape 0.48 (older Gcodetools versions also work with 0.46, 0.47)
Windows
Windows XP, Windows Vista, Windows 7 + inkscape 0.46, inkscape 0.47
MacOS
There are some reports on successful work on MacOs.
Re: Gcodetools - plug-in Inkscape для экспорта в Gcode
Добавлено: 15 май 2012, 16:20
Nick
Sad to hear that about lumnelab

. Hope he'll recover!!!
Re: Gcodetools - plug-in Inkscape для экспорта в Gcode
Добавлено: 15 май 2012, 16:31
Durachko
Here are the jpegs of all six images I intend to make signs from along with an image of an actual test I did in scrap plywood just to ensure the result would be what I want.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 15 май 2012, 16:45
Nick
Nice job!
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 16 май 2012, 22:22
Dan13
Hello,
Just discovered this extension. First, I would like to tell you THANK YOU very much! It's so cool!
I have a couple of questions:
1. I want to cut letters out of a metal sheet so I need the internal paths to be cut before the external contour is cut. Usually it does so automatically, but sometimes when I edit the paths after generating first code, it starts cutting vice versa - external contour first and then internal paths. Can you please tell me how to control this?
2. I have to use Dynamic Offset to account for the tool diameter, however I have two problems with it. They are more with Inkscape itself, but thought you might have a solution. First, sometimes after I select a path and press Ctrl+J the path gets distorted. I don't know why it sometimes happens while other times it doesn't. Second, the offset only works in pixels, but I like to work in mm, because the stuff I do is very small and in pixels it gets lost on the screen. Any ideas about these?
Thanks,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 16 май 2012, 23:35
Nick
1. We've got some path sorting functions... But they do not take into account which path is inside and which is outside.
I think it is a kind of wish list to make ordering depending on internallity of the subpath. If you can help specify all cases or algorithm of ordering the paths it could speed up developing this function

. Unfortunately I've got really small experience working with cnc and all other machines, my experience sum is about 24 ours of working with homemade cnc mill. And about 3 years of talking with people at this forum
As a work around you can try breaking path apart (Ctrl+Shift+K) and sorting them manually.
2. Yes we know about lacks of inkscape's offsets (by the way Dynamic offset and offset made by Alt+( are different ones). In fact offset is really complicated task. I saw bugs in offset even in Rhino 3.x, which is really powerful CAD! So there's much to do about it.
We are working on our own offset function, which is almost done, it is at the testing stage. It works with Biarc paths (Gcode is a kind of biarc path) and offset problem is much easier in that class of curves. But it still in the development version.
As a work around again, you can try another inkscapes offset, ALt+"(" or ")", you can specify it's step in Preferences (Ctrl+Shift+P) - Steps. Naother advice - try to add some nodes by Extensions - Modify Path - Add nodes (I can mistake in exact spelling of the extension but it's something like that).
PS attach your svg, probably I could make more advices

.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 май 2012, 11:00
Dan13
Hi Nick,
Thank you very much for the prompt and detailed reply!
1. I would like to help with this, but I do not know how to define the algorithm. Basically each path that has any path surrounding it would be considered an internal path and you would want to cut it first (or provide the option to chose the order). Consider the letter "O", if I want to cut it, I first want to cut the internal circle and only then the external outline. You can't do it the other way around, because once you cut the external outline the letter is no longer attached to the material and you can't mill inside. Please tell me how I can help further with this.
When you suggest breaking the path and sorting manually, do you mean producing two Gcode files? One for each group?
2. The offset function you're working on sounds great! Please let know if I can help. I will try the workaround you suggest. I didn't know that you could change the steps. Thanks for the tip. I wish it could be done in mm instead of px.
I will get that SVG which has the distortion problem. Hope I didn't delete it
Thanks,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 май 2012, 11:25
Dan13
Here, attached is a simple SVG that I just made. It's a plain rectangle. When I try to use the Ctrl+( the rectangle gets distorted. The Inset/Outset in preferences is set to 2.000px.
This is not what I was talking about in the first post, where I said that Ctrl+J caused this, but the result is the same.
Thanks,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 май 2012, 12:15
Nick
When you suggest breaking the path and sorting manually, do you mean producing two Gcode files? One for each group?
No, just break path appart, sort them along virtual axis Z, using PageUp/PageDown and export all of them at once with Path to Gcode. And make sure to uncheck Sort paths to reduce rapid distance.
Here are my trials with your rectangle:
Top left - offset using Alt+() - pretty nice, and notice that it remains sharp angles.
Bottom left - Dynamic offset - nice to, round angles but some distortion at the arc-line connection (see enlarged piece).
Right - using Test function of current dev-version. Exact offset, but the path is too simple, this offset could be buggish on complex paths. Can you attach the paths you are working with and needed offset distance, it will be useful for me to test offset on the real paths.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 май 2012, 22:33
Dan13
Hi Nick,
I don't have any more the file that was causing me problems with the Dynamic Offset, and was not able to reproduce it. However attached is the sort of work that I do. All paths need to be offset by 0.6mm (tool is 1.2mm diameter). The internal paths offset inside and the external path outside.
Sorting the paths with PageUp/PageDown like you suggested didn't work.
Regards,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 май 2012, 22:43
Nick
If all your paths are simple enough, it could be better to use cutter radius compensation built in your CNC software.
G41 and G42 gcodes are used for that purpose.
http://linuxcnc.org/docs/2.4/html/gcode ... c:G41,-G42
What software are you using to control your machine?
I'll check sorting tomorrow.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 18 май 2012, 11:40
Nick
Can you make a screenshot of your Path-to-Gcode window? All extension's settings are not saved in the svg, but saved in Inkscape options, so they could not been seen from svg file.
I've tried to export your svg and got correct order. See attached ngc.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 18 май 2012, 19:26
Dan13
Hi Nick,
I am using Mach3 to control the machine. I prefer not to add manually cutter radius compensation.
Yes, that SVG outputs correct order. But sometimes it doesn't. I tried the sorting thing you suggested to change the cut order at will, but it didn't work. If you like I can try to make a file which would cut the external profile first.
Regards,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 18 май 2012, 19:43
Nick
Dan13 писал(а):Yes, that SVG outputs correct order. But sometimes it doesn't. I tried the sorting thing you suggested to change the cut order at will, but it didn't work. If you like I can try to make a file which would cut the external profile first.
Yes, I'd like to take a look on it

!
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 18 май 2012, 21:20
Dan13
Hi Nick,
I am sorry. It appears that it was me doing something wrong. Sorting works fine now. I use Home and End keys and it works well. Too bad Inkscape doesn't display the levels of objects.
By the way, I received a reply from Inkscape staff regarding Dynamic Offset. It appears that you can enter units in the XML editor and Inkscape will convert to px automatically. If I work in mm for instance then I can enter an offset in inkscape:radius this way: "1mm" and it will be in millimeters.
Waiting forward to seeing your offset edition.
Regards,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 18 май 2012, 23:41
Nick
Dan13 писал(а):Too bad Inkscape doesn't display the levels of objects.
Let me open to you one hack... Just add fill to paths, and you'll see the levels

. (different colors for different paths and 50-80% opacity could work better)
Dan13 писал(а):By the way, I received a reply from Inkscape staff regarding Dynamic Offset. It appears that you can enter units in the XML editor and Inkscape will convert to px automatically. If I work in mm for instance then I can enter an offset in inkscape:radius this way: "1mm" and it will be in millimeters.
Wow I have not knew that! Thanks!
By the way, you can move the second orientation point to 100 in pixels and then work with paths using px (1mm will be equal 1px then).
PS I do not remember for sure, but we've done a function which can show the order of cutting and tools belongings of the paths... Try this: in Tools library choose the last option Just check the tools and press Apply.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 19 май 2012, 08:49
Dan13
Hi Nick,
Nick писал(а):Dan13 писал(а):Too bad Inkscape doesn't display the levels of objects.
Let me open to you one hack... Just add fill to paths, and you'll see the levels

. (different colors for different paths and 50-80% opacity could work better)
Yes I saw it in some video I think, but I find numbers being more convenient. Anyway, thanks.
Nick писал(а):
By the way, you can move the second orientation point to 100 in pixels and then work with paths using px (1mm will be equal 1px then).
Ah... thanks. Always more than one way to do the same.
Nick писал(а):
PS I do not remember for sure, but we've done a function which can show the order of cutting and tools belongings of the paths... Try this: in Tools library choose the last option Just check the tools and press Apply.
Please see attached the result of doing this.
Regards,
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 19 май 2012, 17:05
Nick
Dan13 писал(а):Please see attached the result of doing this.
Yes, imagine it like layers in perspective those that are above will be cut before others.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 19 май 2012, 18:20
Dan13
Ah... but there is one little path on top of the "L". How do I tell if it's cut first or the "L"?
Dan
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 19 май 2012, 19:08
Nick
It's above L -> it will be cut first. If you add fill to paths, and still can see all the paths, then they will be cut from inside to outside. Otherwise you wont see some paths, because they will be under the outside one.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 22 май 2012, 15:26
Durachko
Here's a finished product from my most recent project. Thanks again for the excellent tool!