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

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

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

(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

Сообщение rubyred » 11 ноя 2014, 10:27

Nick писал(а):If so - then Go to File - Inkscape preferenses - Tool - and set Geometric bbox.


Thanks for the quick response
I attached svg and ngc files below. As you can see in my first post there is some weird X0.0176 codes which they should X0.000 for a rectangle. I did the geometric bbox settings now the weird X Gcodes gone, they are X0.000 but still my rectangle shrinking after convert. I'll appreciate your help.
Вложения
rectangle_30_10_new.svg
(1.69 Кб) Скачиваний: 302
rectangle_new.ngc
(659 байт) Скачиваний: 205
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 11 ноя 2014, 18:36

Ok, now change units at top right to mm instead of px ;)
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

Сообщение rubyred » 12 ноя 2014, 10:04

Nick писал(а):Ok, now change units at top right to mm instead of px ;)


in inkscape ? if change the units to mm and draw a 300mm X 100mm rectangle and than convert the output is 3000mm X 1000mm. Where did i do something wrong :cry:
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 12 ноя 2014, 10:14

The sheet size in your svg is A4 - it is 297x210mm, how do you thing how big should be your rectangle? :)


Note px (pixels) as units at the right of highlighted area on the screenshot
Вложения
Inkscape Gcodetools plug-in English support forum 1.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

Сообщение Nick » 12 ноя 2014, 10:15

rubyred писал(а):in inkscape ? if change the units to mm and draw a 300mm X 100mm rectangle and than convert the output is 3000mm X 1000mm. Where did i do something wrong

Attach your new svg and ngc...
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

Сообщение rubyred » 12 ноя 2014, 12:19

Nick писал(а):
rubyred писал(а):in inkscape ? if change the units to mm and draw a 300mm X 100mm rectangle and than convert the output is 3000mm X 1000mm. Where did i do something wrong

Attach your new svg and ngc...


Here, 300mm X 100mm rectangle and the ngc output is 3000mm X 1000mm :( it's not evet exactly multipled by 10. it is now a 299.9mm x 99.97mm rectangle :(
Вложения
30x10.svg
(1.72 Кб) Скачиваний: 311
30x10.ngc
(666 байт) Скачиваний: 188
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 12 ноя 2014, 12:29

hmmm.
What I did:
open your file
move your rect to origin (y,x 0,0)
changed size to 300x100
path to Gcode

And got
G01 X299.999966 Y99.999988 Z-0.125000 F400.000000 which is almost exact 300x100
Код: Выделить всёРазвернуть
(LASER Header)
(Generated by gcodetools from Inkscape.)
(Header end.)


G21 (All units in mm)

(Start cutting path id: rect2985)
(Change tool to Default tool)

G00 Z5.000000
G00 X-0.000006 Y99.999988

G01 Z-0.125000 F100.0(Penetrate)
G01 X299.999966 Y99.999988 Z-0.125000 F400.000000
G01 X299.999966 Y-0.000027 Z-0.125000
G01 X-0.000006 Y-0.000027 Z-0.125000
G01 X-0.000006 Y99.999988 Z-0.125000
G00 Z5.000000

(End cutting path id: rect2985)


(Footer)
M5
G00 X0.0000 Y0.0000
M2
(Using default footer. To add your own footer create file "footer" in the output dir.)
(end)
%
Вложения
30x10.svg
(29.4 Кб) Скачиваний: 291
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

Сообщение rubyred » 12 ноя 2014, 15:55

Nick, you changed the size in mm right ? if i open this gcode in grbl controller machine wants to go 300cm not mm.Can you tell me "path to gcode" settings step by step ? maybe im doing something wrong.

P.s.I want to use gcodes for 2D cutting via GRBL.
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 12 ноя 2014, 17:44

rubyred писал(а):grbl controller

Does grbl controller use cm as standard units?
Are you sure that there no option to change them to mm?

Anyway you can edit Right Orientation point to be not (100,0,...) but (10,0,...)
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

Сообщение rubyred » 20 ноя 2014, 14:07

Hi Nick, its me again. How are you ?
I have some questions again if you dont mind.

First is there an option to generate gcode without Z axis, maybe you remember i told you i'm trying to use gcodes for 2D styrofoam cutting.

Second question is what is the feed rate for, i try to cut some drawings with previous settings but when the machine comes to a some detailed figure it goes step by step and thats not good for styrofoam cutting. Because every moment between steps the hot wire (that machine cuts sytrofoam) melting the sytrofoam and ruining the figure. It has to be fluid cut to not melt the sytrofoam
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение dormouse » 20 ноя 2014, 14:23

To: rubyred
I am writing to you to ask you to attach two different NC files: a) correct (your own, without pauses) and b) incorrect (gcodetools-generated one)
So we are going to compare them and understand the difference.

P.S. Better if a) is corrected b).
Аватара пользователя
dormouse
Мастер
 
Сообщения: 334
Зарегистрирован: 27 фев 2010, 09:55
Репутация: 15
Заслуга: Developer

Re: Inkscape Gcodetools plug-in English support forum

Сообщение rubyred » 20 ноя 2014, 16:24

dormouse писал(а):To: rubyred
I am writing to you to ask you to attach two different NC files: a) correct (your own, without pauses) and b) incorrect (gcodetools-generated one)
So we are going to compare them and understand the difference.

P.S. Better if a) is corrected b).


Hi, i don't have correct nc file because i'm running the styrofoam cutting machine with another program called winpcNC and it uses plt files. I'm trying to abandon this program thats why I want to use GRBL Controller and gcodes.
rubyred
Новичок
 
Сообщения: 7
Зарегистрирован: 10 ноя 2014, 17:35
Репутация: 0

Re: Inkscape Gcodetools plug-in English support forum

Сообщение dormouse » 21 ноя 2014, 22:31

Do you have a valid ("no-pause") GRBL Controller g-code example? Is this GRBL Controller able to make no-pause movement over lines?
Аватара пользователя
dormouse
Мастер
 
Сообщения: 334
Зарегистрирован: 27 фев 2010, 09:55
Репутация: 15
Заслуга: Developer

Re: Inkscape Gcodetools plug-in English support forum

Сообщение narvf » 01 фев 2015, 12:45

So gcodetools is now included in inkscape 0.91. Congratulations! :)
narvf
Кандидат
 
Сообщения: 60
Зарегистрирован: 22 июл 2014, 11:39
Репутация: 4

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 17 фев 2015, 23:11

Yes very nice that's it's include in 0.91.

But i try the version of Debian experimental repository :
https://packages.debian.org/experimental/inkscape
And the include gcodetools done always errors....
I add orientation point it's OK.
I want adds any tools always this...

Traceback (most recent call last):
File "gcodetools.py", line 6753, in <module>
gcodetools.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "gcodetools.py", line 6665, in effect
self.get_info()
File "gcodetools.py", line 4287, in get_info
recursive_search(self.document.getroot(),self.document.getroot())
File "gcodetools.py", line 4242, in recursive_search
recursive_search(i,i)
File "gcodetools.py", line 4245, in recursive_search
points = self.get_orientation_points(i)
File "gcodetools.py", line 4332, in get_orientation_points
point[1] = [float(r.group(1)),float(r.group(2)),float(r.group(3))]
AttributeError: 'NoneType' object has no attribute 'group'

So i have install the last dev version from git and try with this debian inkscape and this work for :
Add orientation points.
Add tools.
perform a path to gcode..
But when want engraving always the errors :
Traceback (most recent call last):
File "gcodetools-dev.py", line 7805, in <module>
gcodetools.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "gcodetools-dev.py", line 7735, in effect
self.engraving()
File "gcodetools-dev.py", line 6666, in engraving
print_([ [ [p[0]]*3, [p[0][0]+p[1][0]*de10,p[0][1]+p[1][1]*10]*3] ])
NameError: global name 'de10' is not defined

Do you think this come just from problem of Debian version ? or this could be gcodetools errors ?

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc » 18 фев 2015, 02:25

After some research i just come from to see that when put orientation point on the sheet the z depht point was set to -2.35921990392e-15
So i have effectively not set the Z in the orientation point dialog but just keep it to zero.
If i edit the orientation point that have been set to the sheet and set it manually to 0 or -5 or others all stuff work...
After that i try to set the z to -5 on the orientation point dialog and add orientation point to the sheet and then the orientation point is good set with -5.
If i reset Z to 0 in dialog and perform a new orientation point all is perform good now ???
So i don't know why when have first start of 0.91 when put the orieantation point this one set the Z to -2.35921990392e-15 on the sheet.. perhaps
a bad var init somewhere ? So i don't arrive to reproduce the problem after have set the Z in the dialog orientation point windows one time.

bad_orientation_point.png
bad_orientation_point.png (8.9 Кб) Просмотров: 2718
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick » 18 фев 2015, 14:06

alfcnc писал(а):-2.35921990392e-15

probably this form does not covered by regular expression which defines Orientation points.
hmmm got to fix that....
alfcnc писал(а):Do you think this come just from problem of Debian version ? or this could be gcodetools errors ?

this should be gcodetools error. I'm not sure what exact version is included into inkscape 0.91...
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 » 18 фев 2015, 15:14

In my inkscape Inkscape 0.91 r13725 Gcodetools says about ver. 1.7
And if i set the z value manually to this -2.35921990392e-15 the same problem is reproducible.
alfcnc
Кандидат
 
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester

Re: Inkscape Gcodetools plug-in English support forum

Сообщение NightV » 18 фев 2015, 15:23

narvf писал(а):So gcodetools is now included in inkscape 0.91. Congratulations!

WOW!! good news! Nick, my congratulations! :)
Всё просто! если знаешь КАК!
Аватара пользователя
NightV
Почётный участник
Почётный участник
 
Сообщения: 6321
Зарегистрирован: 30 дек 2011, 09:14
Откуда: Israel
Репутация: 2252
Медальки:
Настоящее имя: Владимир Айрапетян

Re: Inkscape Gcodetools plug-in English support forum

Сообщение AAronvb » 25 фев 2015, 22:45

Very Nice, Nick and team..
I have been using inkscape for a few years and never knew I could do this with it. I Have.. This is easier, https://www.facebook.com/groups/AAronsVAWTCNCproject/ . This is where I am at with this. I'm going to spend a lot of time reading and trying things before I start asking questions. The learning curve is going to be steep, I have no former experience with CNC/CAD or the like and this machine. All new to me. I'm in the process of d-loading the programs I need to make this work properly for me. Thanks for doing this!
Moving forward through positive action.
AAronvb
Новичок
 
Сообщения: 10
Зарегистрирован: 24 фев 2015, 20:35
Откуда: Ellensburg, wa.
Репутация: 0
Настоящее имя: AAron

Пред.След.

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

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

Зарегистрированные пользователи: 1Doc1, aftaev, Артем_690, AVK74, Bing [Bot], Brander, CNC-Logic, Enot_1, evgenyjp, fara8018, FLUKE, Gimbarr, Google [Bot], KAT Kzn, MSNbot Media, Nikomas, petrov1962, putnik, ScrewDriver, sn0wflake, ssn, T00T, tooshka, Yahoo [Bot], Yandex [bot], zorrin, Карпуха, ВасилийВикторович, Юрий 333

Поделиться

Reputation System ©'