Inkscape Gcodetools plug-in English support forum

cnc-club.ru for English speaking users

What function should we develope next?

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

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

Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 10 дек 2009, 10:28

Inkscape Gcodetools plug-in English support forum EMC screenshot.png
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

Inkscape Gcodetools plug-in English support forum Screqnshot.png
Preview of the generated Gcode in EMC

Inkscape Gcodetools plug-in English support forum lumen lab gcodetools cnc pocketing 1280.jpg
Gcodetools area pocketing

Inkscape Gcodetools plug-in English support forum 0089 gcode tools lathe emc screenshot.png
Gcodetools lathe

Inkscape Gcodetools plug-in English support forum 0082 gcode tools engraving.jpg
Gcodetools engraving by Rene

Inkscape Gcodetools plug-in English support forum bears.jpg
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.

License (для просмотра содержимого нажмите на ссылку)

License

Inkscape and Gcodetools are licensed under GNU GPL.

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

Inkscape Gcodetools plug-in English support forum g83147_002.png
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)


Inkscape Gcodetools plug-in English support forum g64542.png
Curve to Gcode result
Inkscape Gcodetools plug-in English support forum Screqnshot.png
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 Кб) Скачиваний: 62026

Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(57.1 Кб) Скачиваний: 7112

(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.17 Кб) Скачиваний: 3780

(ver 1.4)
gcodetools.tar.gz
(14.72 Кб) Скачиваний: 12240

(ver 1.2)
extensions.tar.gz
(11.25 Кб) Скачиваний: 3640

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki » 29 май 2010, 19:24

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 29 май 2010, 22:42

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 Кб) Скачиваний: 789

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki » 30 май 2010, 18:41

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 » 30 май 2010, 18:48

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 31 май 2010, 15:08

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 Кб) Скачиваний: 665
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1315
Заслуга: Developer
Медальки:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 01 июн 2010, 19:23

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 01 июн 2010, 22:07

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 03 июн 2010, 19:34

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

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

Сообщение ronald44181000 » 05 авг 2010, 08:01

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 05 авг 2010, 08:59

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение ronald44181000 » 05 авг 2010, 15:23

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 05 авг 2010, 15:39

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение rene » 15 авг 2010, 15:26

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

Rene

Inkscape Gcodetools plug-in English support forum DSC06921.JPG
Inkscape Gcodetools plug-in English support forum DSC06931.JPG
Inkscape Gcodetools plug-in English support forum DSC06939.JPG
rene
Новичок
 
Сообщения: 4
Зарегистрирован: 12 фев 2010, 18:25
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 16 авг 2010, 15:30

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 17 авг 2010, 13:17

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 20 авг 2010, 15:36

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение rene » 23 авг 2010, 23:24

>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 Кб) Скачиваний: 606
milo.svg
(257.31 Кб) Скачиваний: 738
milo_2mm.ngc
(24.66 Кб) Скачиваний: 682
Inkscape Gcodetools plug-in English support forum hy_res.gif
rene
Новичок
 
Сообщения: 4
Зарегистрирован: 12 фев 2010, 18:25
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 24 авг 2010, 09:14

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.
Вложения
Inkscape Gcodetools plug-in English support forum 0094 gcodetools engraving.png
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1315
Заслуга: Developer
Медальки:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение rene » 24 авг 2010, 11:24

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение admin » 26 авг 2010, 09:30

Fresh bug fix:


You can get latest version Gcodetools 1.6.01 at the header of this thread.
Аватара пользователя
admin
Site Admin
 
Сообщения: 87
Зарегистрирован: 05 мар 2009, 18:23
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 0
Заслуга: Developer
Медальки:

Пред.След.

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

Кто сейчас на конференции

Зарегистрированные пользователи: 731, aftaev, AlexNikov, алексей алексей, Bing [Bot], Ershoff, filichka999, Google [Bot], john1987887, kalinvick, laza002, Leonid Vs, Lexxa, magnetic, michael-yurov, mocia, MSNbot Media, N1X, Pahan, Predator, savo, SGStandart, shalek, Taganrog, TheDreamer, tooshka, toxakorzh, Udjin, vladumur, Yahoo [Bot], Yandex [bot], Yarrr

Поделиться

Reputation System ©'