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

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

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

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

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

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
Репутация: 1328
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 05 апр 2010, 22:03

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение lond » 06 апр 2010, 20:52

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
lond
Новичок
 
Сообщения: 5
Зарегистрирован: 28 мар 2010, 22:03
Репутация: 0

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 06 апр 2010, 21:37

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 07 апр 2010, 22:33

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.

Inkscape Gcodetools plug-in English support forum path_to_gcode_error_X.jpg



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.

Inkscape Gcodetools plug-in English support forum path_to_gcode_error_Y.jpg
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 07 апр 2010, 23:34

This is realy a strange thing. It sould not be so.
I'll check it tomorow morning.
Use the Console, Luke.
Аватара пользователя
Nick
Мастер
 
Сообщения: 22330
Зарегистрирован: 23 ноя 2009, 16:45
Откуда: Gatchina, Saint-Petersburg distr., Russia
Репутация: 1328
Заслуга: Developer
Медальки:

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 07 апр 2010, 23:53

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.

Inkscape Gcodetools plug-in English support forum turning_path.jpg.png


Have a good night !
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 08 апр 2010, 09:17

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

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение alfcnc » 08 апр 2010, 14:03

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 08 апр 2010, 14:52

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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 15 апр 2010, 16:56

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


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

Re: Inkscape Gcode tools plug-in English support forum

Сообщение dormouse » 23 апр 2010, 21:33

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.
Аватара пользователя
dormouse
Мастер
 
Сообщения: 334
Зарегистрирован: 27 фев 2010, 09:55
Репутация: 15
Заслуга: Developer

Re: Inkscape Gcode tools plug-in English support forum

Сообщение Nick » 28 апр 2010, 22:59

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 05 май 2010, 17:07

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 17 май 2010, 12:59

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

Re: Inkscape Gcodetools plug-in English support forum

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

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki » 21 май 2010, 13:31

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

Re: Inkscape Gcodetools plug-in English support forum

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

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki » 25 май 2010, 21:32

here is my inkex.py file
Вложения
inkex_py.zip
(2.74 Кб) Скачиваний: 999
smiki
Новичок
 
Сообщения: 6
Зарегистрирован: 21 май 2010, 13:21
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 26 май 2010, 10:13

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение smiki » 26 май 2010, 15:03

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

Пред.След.

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

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

Зарегистрированные пользователи: _taras_, AlexQ, anahron, arkadiy2, ASPtr, besriworld, Bing [Bot], Сергей/25rus, Cvazist, Din, Dmaster, evgenymcp, frezeryga, Google [Bot], Google Feedfetcher, iMaks-RS, irbis, john1987887, kasmirov, Konstantin_K, kpankratov, legi0ner, michael-yurov, mikehv, pdk, sivolap36, tsurika, Udintsev, verser, Yahoo [Bot], Yandex [bot]

Поделиться

Reputation System ©'