Inkscape Gcodetools plug-in English support forum

cnc-club.ru for English speaking users

What function should we develope next?

Можно выбрать до 5 вариантов ответа

 
 
Результаты голосования

Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Generated Gcode in EMC2 (1315103 просмотра) <a class='original' href='./download/file.php?id=508&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (21.99 КБ)</a>
Generated Gcode in EMC2
TypeExtension of vector
graphics editor Inkscape
DeveloperGcodetools develop team
Written inPython
OSCross-Platform (Windows, Linux, MacOS)
Version1.6.03
LicenseGNU GPL
Downloads7800+

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 (1318027 просмотров) <a class='original' href='./download/file.php?id=130&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1304130 просмотров) <a class='original' href='./download/file.php?id=772&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1310451 просмотр) <a class='original' href='./download/file.php?id=642&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1310616 просмотров) <a class='original' href='./download/file.php?id=631&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1246074 просмотра) <a class='original' href='./download/file.php?id=5429&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (89.93 КБ)</a>
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
Screenshots (для просмотра содержимого нажмите на ссылку)

Screenshots

Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb) (1318030 просмотров) <a class='original' href='./download/file.php?id=127&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1318036 просмотров) <a class='original' href='./download/file.php?id=103&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1318027 просмотров) <a class='original' href='./download/file.php?id=130&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Get latest version (для просмотра содержимого нажмите на ссылку)

Get latest versions

Latest stable version Gcodetools 1.7
gcodetools.tar.gz
Gcodetools 1.7
(75.25 КБ) 102096 скачиваний
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14955 скачиваний
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10537 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27081 скачивание
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10317 скачиваний

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:
Credits (для просмотра содержимого нажмите на ссылку)

Credits

Developers:
  • Nick Drobchenko (Nick)
  • Vladimir Kalyaev (Dormouse)
  • Henry Nicolas (Alfcnc)
  • Chris Lusby Taylor (ChrisInNewbury)
Translators:
  • John Brooker (greybeard from cnczone.com)
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.
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki »

I added the two line of code you suggested to my inkex.py

Код: Выделить всё

import gettext
_ = gettext.gettext
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?
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
inkex.py.tar.gz
(3.25 КБ) 2117 скачиваний
Another way: you can add a stiring into gcodetools:

Код: Выделить всё

inkex.errormsg = lambda x: pass

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. :)
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Вложения
gcodetools.tar.gz
(21.32 КБ) 1992 скачивания
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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...
ronald44181000
Новичок
Сообщения: 2
Зарегистрирован: 05 авг 2010, 05:42
Репутация: 0
Контактная информация:

Re: Gcodetools - plug-in Inkscape для экспорта в Gcode

Сообщение 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.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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:
  1. 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
  2. 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?
ronald44181000
Новичок
Сообщения: 2
Зарегистрирован: 05 авг 2010, 05:42
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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?
rene
Новичок
Сообщения: 4
Зарегистрирован: 12 фев 2010, 18:25
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение rene »

To answer to the request for photo's some engraving done with Gcodetools . Thank's for writing it!.

Rene
DSC06921.JPG (22516 просмотров) <a class='original' href='./download/file.php?id=610&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (55.2 КБ)</a>
DSC06931.JPG (22516 просмотров) <a class='original' href='./download/file.php?id=611&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (57.44 КБ)</a>
DSC06939.JPG (22516 просмотров) <a class='original' href='./download/file.php?id=612&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (57.67 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
rene
Новичок
Сообщения: 4
Зарегистрирован: 12 фев 2010, 18:25
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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
Вложения
milo.ngc
(24.91 КБ) 1843 скачивания
milo.svg
(257.31 КБ) 1659 скачиваний
milo_2mm.ngc
(24.66 КБ) 2015 скачиваний
hy_res.gif (22467 просмотров) <a class='original' href='./download/file.php?id=647&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (439.83 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Вложения
0094 gcodetools engraving.png (22465 просмотров) <a class='original' href='./download/file.php?id=648&sid=bfc1a5e7156741c75f4e4316c66da656&mode=view' target=_blank>Загрузить оригинал (268.82 КБ)</a>
rene
Новичок
Сообщения: 4
Зарегистрирован: 12 фев 2010, 18:25
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение 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.
Аватара пользователя
admin
Site Admin
Сообщения: 101
Зарегистрирован: 05 мар 2009, 18:23
Репутация: 54
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение admin »

Fresh bug fix:
  • Orientation points now has it's own units selector.
  • Parameterize Gcode now generates correct Gcode:

    Код: Выделить всё

    G00 X[9.2202383*#8+#10] Y[9.4568*#7+#12]
    instead of:

    Код: Выделить всё

    G00 X9.2202383*#8+#10 Y9.4568*#7+#12
You can get latest version Gcodetools 1.6.01 at the header of this thread.
Ответить

Вернуться в «English forum»