Страница 5 из 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: Inkscape Gcodetools plug-in English support forum
Добавлено: 29 май 2010, 19:24
smiki
I added the two line of code you suggested to my inkex.py
But it still doesn't work
now I get this error:
Код: Выделить всё
Traceback (most recent call last):
File "/usr/share/inkscape/extensions/gcodetools.py", line 1748, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 156, in affect
self.effect()
File "/usr/share/inkscape/extensions/gcodetools.py", line 1725, in effect
self.get_info()
File "/usr/share/inkscape/extensions/gcodetools.py", line 992, in get_info
self.error(_("No paths are selected! Trying to work on all available paths."),"warning")
File "/usr/share/inkscape/extensions/gcodetools.py", line 934, in error
inkex.errormsg(s+"\n")
AttributeError: 'module' object has no attribute 'errormsg'
any idea?
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 29 май 2010, 22:42
Nick
Yes, I've got some ideas!
First of all, to make it work you can try inkex.py from later versions. Here's inkex.py from 0.48.
Another way: you can add a stiring into gcodetools:
It seems that inkex has been changed a lot since your version. And we have to think what to do about it.
PS I've got good news, Inkscape's developers asked me to post a request to include gcodetools into inkscape's main package. So probably we won't have this problem anymore.

Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 30 май 2010, 18:41
smiki
I've replaced my inkex.py file with the newer one you provided.
But still no success. Now I get this error. I've seen it before on the newer Inkscape with working gecodetools. Usualy saving it as PS and reimporting helps. But not this time.
Код: Выделить всё
No paths are selected! Trying to work on all available paths.
Orientation points have not been defined! A default set of orientation points has been automatically added.
Traceback (most recent call last):
File "/usr/share/inkscape/extensions/gcodetools.py", line 1748, in <module>
e.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 207, in affect
self.effect()
File "/usr/share/inkscape/extensions/gcodetools.py", line 1729, in effect
self.orientation( self.layers[min(1,len(self.layers))] )
IndexError: list index out of range
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 30 май 2010, 18:48
smiki
root писал(а):
PS I've got good news, Inkscape's developers asked me to post a request to include gcodetools into inkscape's main package. So probably we won't have this problem anymore.

including gcodetools to the main package is good news indeed. But I would be happy to have gcodetools also working with inkscape 0.46 since the official EMC2 based on Ubuntu hardy heron has this version in the repositories. And this version is going to be supported from EMC2 team for still at least a year. Practically everybody using EMC2 now has Hardy installed with inkscape 0.46
EMC2 for Lucid Lynx is still a long way to go. and probably wont be stable any time soon.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 31 май 2010, 15:08
Nick
Totally agreed, gcodetools must work on inkscape 0.46.
Ok, here's fixed version.
I've added a check if inkex has "errormsg" and if it has not add it.
Код: Выделить всё
### Check if inkex has errormsg (0.46 version doesnot have one.) Could be removed later
if "errormsg" not in dir(inkex):
inkex.errormsg = lambda msg: sys.stderr.write((unicode(msg) + "\n").encode("UTF-8"))
And fixed one bug which can appear if you do not have any layers at all, it shows when you open svg, that has been made using not Inkscape but some other apps.
Hope it'll work

. I've tried it on Ububtu 9.04 / inkscape 0.46.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 01 июн 2010, 19:23
alfcnc
Hi !
I think that's be nice to optimize the path...
The cutting process would be more speedy when have many zone to cut...
I've found that jeff Eppler one guys that have programming Axis gui of emc
have done some time ago a generator of photo in "dot" of gcode.. for drilling it with emc...
Nice effects...
http://emergent.unpythonic.net/stippler
But the problems his the time to take for drilling all of the dot...was very very too long..
To win many time in machinning process he have prog an gcode optimizer
that works great... "i found..but perhaps it can be more efficients.."
The interest his that it is prog in python and perhaps this one can be easy to add to gcodetools
which one is in python and be able to output optimize gcode path ...
http://axis.unpy.net/index.cgi/downloads/01103508580
Thank's and have a nice day.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 01 июн 2010, 22:07
Nick
Actually we do have a little optimization. We do not process path in the order they appear in svg. Gcodetools chooses the path having starting point nearest to the ending point of previous path.
Optimization problem is a
Travelling salesman problem which is very complex. And has no "fast" solution.
PS Thank you for your help with photos. I'll write you tomorrow or in some day with certain svg or Gcode.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 03 июн 2010, 19:34
alfcnc
Yes fast optimisation is a very hard problems...
I've not see that's you have ever optimize the path! congratulation.
That's great.
I wait with regards your code and take photos...
Re: Gcodetools - plug-in Inkscape для экспорта в Gcode
Добавлено: 05 авг 2010, 08:01
ronald44181000
The Windows installation files are incomplete. The files that are listed in the download are gcode_tools.inx and gcode_tools.py. The folder containing GCODE tool DEVELOPE does not appear. Also I have the latest version of Inkscape. Any help that you can pass along would be greatly appreciated.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 05 авг 2010, 08:59
Nick
This happens because DEVELOPE version is being developed right now. All features from it will be available at next release. Which I think we will make at the end of the August.
Bu still you can try develop version right now by getting it from our Bazaar repository.
You can do it in several ways:
- You can download all necessary files from web interface at http://www.launchpad.net/gcodetools .
Here's the link to the latest at the moment Revision 142 http://bazaar.launchpad.net/~gcodetools ... /files/142
- Install bazaar and get the files using it's functions. Once you have installed bazaar all you'll have to do to get the latest developing version just run "bzr branch lp:gcodetools"
See here for more http://doc.bazaar.canonical.com/latest/ ... stallation
After you get all the files you'll need to run "python create_inx.py" in the folder where you have saved the files. This will create several inx files for separate windows.
Then copy all the file into "Program Files\Inkscape\share\extensions\" and restart Inkscape.
Enjoy

!
PS I've moved your question into English support forum from Russian one.
PSS How you managed to post your question in Russian forum. Have you used "Google translate" or not?
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 05 авг 2010, 15:23
ronald44181000
Yes I used Google translate, and I'l try to install Bazaar on my Vista machine in the latest version of Inkscape. Otherwise I'll remove the newer copy of Inkscape and revert to the earlier .043 version. Thank you for you response.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 05 авг 2010, 15:39
Nick
ronald44181000 писал(а):Yes I used Google translate, and I'l try to install Bazaar on my Vista machine in the latest version of Inkscape. Otherwise I'll remove the newer copy of Inkscape and revert to the earlier .043 version. Thank you for you response.
Do not revert to v0.43!
Gcodetools works fine with the latest versions of the Inkscape. Even more I think that it works better with the latest versions.
I use both Inkscape v0.47 and v0.47 devel (the future 0.48). Both of them work fine with gcodetools!
PS Bazaar is not a part of Inkscape it's a special tool for developers/programmers/testers which allows version control and distributed development.
PSS what functions are you looking for in gcodetools?
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 15 авг 2010, 15:26
rene
To answer to the request for photo's some engraving done with Gcodetools . Thank's for writing it!.
Rene
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 16 авг 2010, 15:30
Nick
Hi Rene!
Thank you for the photos!
Could you attach the svg of the "Milo". I think there's an error in the engraving function.
And how have you done those picture at the first photo? It's just awesome! Is it done with the engraving function or not?
By the way we are planning to make Gcodetools 1.6 release in some days.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 17 авг 2010, 13:17
alfcnc
Yes nice work !
Could you set better resolution photos...to be able to see the detail of the engraving..
If you can do some tutorial on how you operate if it have more than say's in the forum...nice too..
Thank's for feedback ! and have a nice day.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 20 авг 2010, 15:36
Nick
Hi Guys!
We are proud to make a new release!
Please welcome Gcodetools 1.6
Still waiting for more photos and screenshots!
We'll appreciate comments, bug reports and any feedback.
I do not want to describe all the features of Gcodetools 1.6 you can find the at the heater of the thread, but here are new features of Gcodetools:
Export to Gcode
- 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 remaping
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 remaping
- Parameterize Gcode
- Round floating point values to specified precision
Verifing 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 - rotation if the knife.
Misc
- Check for updates function
As usual new version is available at the header of the thread:
Get latest versions.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 23 авг 2010, 23:24
rene
>alfcnc,requested bigger photo, it already has some dents and scratches from being in the bottom of a toolbox for a while so i gave it a quick polish. It was actually the first test i did with gcodetools i think a year ago or so and i dont have the slightest idea how i did it (sorry) The design is by a friend of mine who is in to comics and drawing
http://www.sadrabbits.com.
>root, the milo.svg the original output and the edited to run (ad a speed S1 else spindle wil not run and changed feed and depth til now im stil a bit lazy in exactly figuring out how to use gcodetools tool well
I looking forward to test the new version (if i find some time)
regards Rene
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 24 авг 2010, 09:14
Nick
Hi Rene!
Unfortunately there's no automatic subdivision inside engraving function. But yo can get better results if you'll do the subdivision yourself.
See the attached image. I've marked bad places with red arrows and good ones with green. You can notice that the more knots you add the better result you'll get. But the calculation time depends at n^2 where n is knots number. So if you increase knots number in two times calculation time will be 4 times longer.
Also it's better to do Path->Break Appart for isolated paths. So they will be calculated separately and calculation time will be m^2+n^2 instead (m+n)^2= m^2 + n^2 + 2*m*n so you'll have 2*m*n calculation time benefit (n,m knots number of separate paths).
Of course all this make sense only for large paths. But keep that in mind

.
To add more nodes use Extensions->Modify path->Add nodes. You can choose from two Division methods either by seg. length or by segment number.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 24 авг 2010, 11:24
rene
Ah,that is how to solve it ! I'l keep that in mind the next time. I noticed that strange behaviour, but as the result was fine by me i dint look further.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 26 авг 2010, 09:30
admin
Fresh bug fix:
- Orientation points now has it's own units selector.
- Parameterize Gcode now generates correct Gcode:
instead of:
You can get latest version
Gcodetools 1.6.01 at the header of this thread.