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 (1316342 просмотра) <a class='original' href='./download/file.php?id=508&sid=82c48d7dab2d410b79d6581d8b4edd71&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 (1319266 просмотров) <a class='original' href='./download/file.php?id=130&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1305369 просмотров) <a class='original' href='./download/file.php?id=772&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1311690 просмотров) <a class='original' href='./download/file.php?id=642&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1311855 просмотров) <a class='original' href='./download/file.php?id=631&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1247313 просмотров) <a class='original' href='./download/file.php?id=5429&sid=82c48d7dab2d410b79d6581d8b4edd71&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) (1319269 просмотров) <a class='original' href='./download/file.php?id=127&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1319275 просмотров) <a class='original' href='./download/file.php?id=103&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1319266 просмотров) <a class='original' href='./download/file.php?id=130&sid=82c48d7dab2d410b79d6581d8b4edd71&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 КБ) 102133 скачивания
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14964 скачивания
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10542 скачивания
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27088 скачиваний
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10324 скачивания

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Note the following
From next versions tool parameters will be defined by tools library to add new tools you'll need:
  • Open Tools library tab
  • Select tools type (this only defines tool fields, you can add them after)
  • A new group will be added that will contain tool definitions
  • Fill in parameters with the text tool, if you do not understand something just do not change it ;)
  • You can add a number of tools, extension will choose topmost (in z order) tool in the active layer or in the whole scene if there's no tools definitions in the active layer.
Please tell us about your opinion about new interface.

By the way thanks for the bug report! :D

PS this bug fix should fix deep holes and high peaks but should not fix some bugs in c letter and "i"'s dot. May be subdivision that you've made is to much try smaller values. And about "as" letters do Path->Reverse for them.

PSS do you know any Gcode previewer for Linux, except EMC, I need one to test generated Gcode files. I have problems with installing EMC at my work even in simulator mode, because I have LTPS server running on my computer and cannot install any hardware graphics drivers.


PSSS I'm wondering that theres to votes for improving Path to gcode what do you want to be improved?
lond
Новичок
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond »

Hi!

I finally got the dimension marker to work and my gcode looks right now :) :) :) :D :D :D

Where can I find a Gcode viewer for windows? I use just notepad to see if tho gcode looks right.

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Dormouse mentioned in his engraving tutorial this application windows freeware NCPlot v1.2.
Actual version is 2.1 but 1.2 is free you can get it from here:
http://www.ncplot.com/ncplotfree/ncplotfree.htm
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

Hi ! I have made some try with path to gcode ! and find error precision in Y conversion.

First screen shot show that in the gcode in left the max X coordinate is good and 2.594.
path_to_gcode_error_X.jpg (15988 просмотров) <a class='original' href='./download/file.php?id=481&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (85.3 КБ)</a>

In this second screen shot when tool is at max Y the value is -24.697 and musd be -24.594 = 0,103mm error...big for some things
good for other but bad for me.
path_to_gcode_error_Y.jpg (15988 просмотров) <a class='original' href='./download/file.php?id=482&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (89.55 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

This is realy a strange thing. It sould not be so.
I'll check it tomorow morning.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

Hi , i've vote For improve path to gcode !
But i think that's its a new feature...
That's be nice to be able to do gcode for turning from a path.
The XY for final cutting was the same than the generate paht-to-gcode and i think that just add an X cycle step for cuting along X axis was enought to be able to do turning path .. !

That's be nice to be able to set the y pass step depth.
turning_path.jpg.png (15985 просмотров) <a class='original' href='./download/file.php?id=483&sid=82c48d7dab2d410b79d6581d8b4edd71&mode=view' target=_blank>Загрузить оригинал (50.08 КБ)</a>
Have a good night !
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

In this second screen shot when tool is at max Y the value is -24.697 and musd be -24.594 = 0,103mm error...big for some things
good for other but bad for me.
Is there an orientation point at the top of the circle? I see a small distance between orientation point and top of circle. It could be the reason of the circle been moved a little bit to the bottom.
I've tried to reproduce this error but everything seems fine to me.
G02 X[12.348501*#5+#8] Y[-24.697000*#5+#9] Z[-0.282222*#7+#10] I[-8.731709*#5] J[8.731709*#5]
circle.svg
(8.55 КБ) 1738 скачиваний

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

%
(Generated by gcode_tools from inkscape.) 
M3 
G21 (All units in mm)
#4  = 400.000000 (Feed)
#5  = 1 (Scale xy)
#7  = 1.0 (Scale z)
#8  = 0 (Offset x)
#9  = 0 (Offset y)
#10 = 0.0 (Offset z)
#11 = 5.0 (Safe distanse)
#12 = 100 (Penetration feed)
G00 Z[#11*#7+#10]
G00 X[24.697002*#5+#8] Y[-12.348500*#5+#9]

G01 Z[-0.282222*#7+#10] F#12
G02 X[21.080210*#5+#8] Y[-21.080208*#5+#9] Z[-0.282222*#7+#10] I[-12.348500*#5] J[-0.000000*#5] F#4
G02 X[12.348501*#5+#8] Y[-24.697000*#5+#9] Z[-0.282222*#7+#10] I[-8.731709*#5] J[8.731709*#5]
G02 X[3.616792*#5+#8] Y[-21.080208*#5+#9] Z[-0.282222*#7+#10] I[-0.000000*#5] J[12.348501*#5]
G02 X[0.000000*#5+#8] Y[-12.348500*#5+#9] Z[-0.282222*#7+#10] I[8.731708*#5] J[8.731708*#5]
G02 X[3.616792*#5+#8] Y[-3.616792*#5+#9] Z[-0.282222*#7+#10] I[12.348499*#5] J[0.000000*#5]
G02 X[12.348501*#5+#8] Y[0.000000*#5+#9] Z[-0.282222*#7+#10] I[8.731709*#5] J[-8.731709*#5]
G02 X[21.080210*#5+#8] Y[-3.616792*#5+#9] Z[-0.282222*#7+#10] I[0.000000*#5] J[-12.348501*#5]
G02 X[24.697002*#5+#8] Y[-12.348500*#5+#9] Z[-0.282222*#7+#10] I[-8.731707*#5] J[-8.731708*#5]
G01 X[24.697002*#5+#8] Y[-12.348500*#5+#9] Z[-0.282222*#7+#10]
G00 Z[#11*#7+#10]

M5 
G00 X0.0000 Y0.0000 
M2 
(end)
%

Turning path

I think it will be very good if we do extension for turning lathe.
But I can not do it by myself because I have no experience of working with lathe. In our Russian forum there are some different threads than focus on Gcode tools develop. And every thread is pushed by somebody, for example Engraving was involved by Dormouse, Plasma cutting by Aftaev. So I need your help to create this extension, or I can help you to write it by yourself.

There are some questions that should be discussed before implementing lathe extension. I'll create new thread for it.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc »

Ok ! the problem come that I think that the coordinate reference take the point 0,0 automatically
and I have not see the little offset on the coordinate point 0,0...
Excuse me for loose your time.
I have tried and no problem ! very well.
For develop new turning feature I'm not a python programmer.
But can try to make a new tab and see what that do.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

alfcnc писал(а):For develop new turning feature I'm not a python programmer.
But can try to make a new tab and see what that do.
I can do all programing work. I need answers on some technical questions and advises about the interface.
Let's move to this thread: http://www.cnc-club.ru/forum/viewtopic.php?f=33&t=64
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Gcode tools v1.5 release

Everything is almost done!
All we have to do is to correct mistakes in the interface. Unfortunately our English is poor so we can not do it by ourself.

Here's messages.pot file. It will be used to translate the interface to other languages, and contains almost whole interface.
It is a plain text file, so you can correct it in any editor you want.
messages.pot
(7.65 КБ) 2276 скачиваний
Messages.pot contains strings like following, only msgid is needed to be corrected right now.
#: gcode_tools-develope.inx:1
msgid "Default tool (all parameters)"
msgstr ""

Also we need to correct tools parameters namings:
  • "diameter":10,
  • "shape": "10",
  • "penetration angle":90,
  • "penetration feed":100,
  • "depth step":1,
  • "in trajectotry":"",
  • "out trajectotry":"",
  • "gcode before path":"",
  • "gcode after path":"",
  • "sog":"" # this means cooling liquid I really do not know how to call it
  • "spinlde rpm":"",
  • "CW or CCW":"",
Thanks in advance!
messages.pot
(7.65 КБ) 2276 скачиваний
Аватара пользователя
dormouse
Мастер
Сообщения: 334
Зарегистрирован: 27 фев 2010, 09:55
Репутация: 15
Заслуга: Developer
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение dormouse »

Second tutorial "gcodetools tutorial 02: Mill a spiral in 7 clicks!" by Dormouse.
http://kalyaev.com/2010/20100423/tut02/tut02.html

used: "gcodetools (dev)" (release 1.5 RC1 aka rev.55)
and NCPlot 1.2 freeware Gcode viewer for Windows http://www.ncplot.com/ncplotfree/ncplotfree.htm.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick »

Gcodetools 1.5 release is here!

The latest version is in the header of this thread.

Features (new ones are in green)

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Bug fix
A little bug have been fixed. Scale factor that was calculated using Orientation points affected Z coordinate.

Fixed version is in the header of this thread.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

hi !

After some try with path to gcode and area !
I think some simple improvement would be add to the generation of gcode.
In the case of multi pass cutting with Z depth step when the code goto the other
plunge it return to zsafe... and this loose time.
I think it's more interesting to plunge directly to the new z depth...and not to return to z safe
and just go to new Z depth...
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

alfcnc писал(а):hi !

After some try with path to gcode and area !
I think some simple improvement would be add to the generation of gcode.
In the case of multi pass cutting with Z depth step when the code goto the other
plunge it return to zsafe... and this loose time.
I think it's more interesting to plunge directly to the new z depth...and not to return to z safe
and just go to new Z depth...
Hmmmm... I'll think about it.

There are some moments:
1. It would work only for closed paths.
2. When we do multi pass cutting, especially in area cutting case, it could be better to cut layer by layer, instead of cutting paths to the maximum depth.
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki »

Hello,

I've got a problem. When trying to use the extension I always get this message:

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

Traceback (most recent call last):
  File "/usr/share/inkscape/extensions/gcodetools.py", line 41, in <module>
    _ = inkex._
AttributeError: 'module' object has no attribute '_'
I'm using a standard EMC2 install from the official liveCD .iso image (ubuntu hardy 8.04)
Inkscape version 0.46
gcodetools version 1.5
python 2.5

In this install was alsomissing the python-lxml package which i had to add manualy.
Can this problem be caused by some more missing package?
Do you need any more information ?
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Thanks for the feedback!

Could you attach inkex.py file (/usr/share/inkscape/extensions/inkex.py) from your install. Probably it differs from inkex.py from inkscape 0.47 and higher.
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki »

here is my inkex.py file
Вложения
inkex_py.zip
(2.74 КБ) 1564 скачивания
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

As I thought your inkex.py differs from that is in Inkscape 0.47.

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

import gettext
from math import *
_ = gettext.gettext

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

import sys, copy, optparse, random, re
I think we need to add this to gcodetools.

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

import gettext
_ = gettext.gettext
PS does anybody know when EMC2 Ubuntu 10.04 LiveCD will be ready?
smiki
Новичок
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki »

I will try your solution to add these lines to gcodetools. Will get back to you.

according to 10.04 release see schedule
http://wiki.linuxcnc.org/emcinfo.pl?Emc2.4Status
Ответить

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