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 (1320066 просмотров) <a class='original' href='./download/file.php?id=508&sid=d81f051cadfe774eeadda90aacfac2f7&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 (1322990 просмотров) <a class='original' href='./download/file.php?id=130&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1309093 просмотра) <a class='original' href='./download/file.php?id=772&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1315414 просмотров) <a class='original' href='./download/file.php?id=642&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1315579 просмотров) <a class='original' href='./download/file.php?id=631&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1251037 просмотров) <a class='original' href='./download/file.php?id=5429&sid=d81f051cadfe774eeadda90aacfac2f7&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) (1322993 просмотра) <a class='original' href='./download/file.php?id=127&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1322999 просмотров) <a class='original' href='./download/file.php?id=103&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1322990 просмотров) <a class='original' href='./download/file.php?id=130&sid=d81f051cadfe774eeadda90aacfac2f7&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 КБ) 102236 скачиваний
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14993 скачивания
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10575 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27137 скачиваний
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10349 скачиваний

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

Excuse me ! But have always exactly the same problem after update to 247 ?
I use Inkscape Inkscape 0.48.3.1 r9886 on Debian...
Would you want more information on it ?
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Are you sure that you are using rev 247, what do you have at string
5268-5269 of gcodetools-dev.py

Can you post error string again please.
alfcnc
Кандидат
Сообщения: 98
Зарегистрирован: 02 апр 2010, 19:10
Репутация: 0
Заслуга: Tester
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение alfcnc »

Oh Yes ! Curious problem of refresh... perahps because i have copy the file of extension when inkscape was running....
So that's work ! Congratulation again.
deece
Новичок
Сообщения: 2
Зарегистрирован: 30 сен 2012, 14:27
Репутация: 0
Контактная информация:

Minor bug fix

Сообщение deece »

There is a bug in the spindle RPM code in the dev branch which causes an uninitialised access in some circumstances (and possibly incorrect output).

Here is the patch to fix it:

--- gcodetools-dev.py.orig Sun Dec 2 11:17:53 2012
+++ gcodetools-dev.py Sun Dec 2 11:25:02 2012
@@ -5266,7 +5266,7 @@
g += ( "(Change tool to %s)\n" % re.sub("\"'\(\)\\\\"," ",tool["name"]) ) + tool["tool change gcode"] + "\n"
self.last_used_tool = tool
if "" != tool["spindle rpm"] :
- gcode += "S%s\n" % (tool["spindle rpm"])
+ g += "S%s\n" % (tool["spindle rpm"])
lg, zs, f = 'G00', self.options.Zsafe, " F%f"%tool['feed']
current_a = None
go_to_safe_distance = "G00" + c([None,None,zs]) + "\n"
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Thank you for the fix! :good:
I'll push it into the code.
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

While insetting the attached image for pocketing I got a repeatable error in the g-code calculated between the points indicated by the red arrows in the attached image. No big deal as I fixed it by hand but perhaps this might help someone identify and correct a tiny code anomaly?
Вложения
rays.jpg (9364 просмотра) <a class='original' href='./download/file.php?id=11849&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (39.57 КБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Can you attach your svg and describe the problem?
Perhaps there's a small handle that is not easily seen and does not have noticeable influence to the path but it can ruin all offsets.
brian60221
Новичок
Сообщения: 1
Зарегистрирован: 16 фев 2013, 12:44
Репутация: 0
Контактная информация:

plasma cutter lead-in/out points

Сообщение brian60221 »

Sometimes the paths I generate for plasma cutter have bad lead-in/out points.

For example, if I need to cut out a rectangular shape, the lead-in/out point is one of the corners of the rectangle, and the lead-in actually starts outside the rectangle when of course it should start on the inside.

If I pick the longest segment in a path and add a node in the middle, that new node would make a good lead-in/out point. But how do I tell the plasma cutter plugin to use that node?
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

brian60221 писал(а):For example, if I need to cut out a rectangular shape, the lead-in/out point is one of the corners of the rectangle, and the lead-in actually starts outside the rectangle when of course it should start on the inside.
Try Path-Reverse - after that in/out paths will be on the ohter side.
brian60221 писал(а):If I pick the longest segment in a path and add a node in the middle, that new node would make a good lead-in/out point. But how do I tell the plasma cutter plugin to use that node?
There are two ways:
1. Break path appart in that point - F2 (node edidting tool) - select the node - pres the buton to mate two not connected nodes from one node.
2. Add in/out point. On prepare for plasma chechk the box to add that point. The point looks like an arrow, just move it near by desired point. You can copy that "arrow" to make several points for several paths (just do not ungrpup it and make a copy of the entire group).
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

Could you possibly write up a short tutorial on engraving the attached file with a 90 degree conical cutter for a finished letter roughly 1.25 inches high? I just cannot manage to get the engraving utility to work at all. I keep getting bad orientation point errors and other errors whenever I attempt to create the gcode. I also have finally completed all six of my signs (like the Bears by Durachko sign) and I'd be happy to send you images if you'd like to post them.
Вложения
Tim_Engrave_Test.svg
(11.43 КБ) 869 скачиваний
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

Nick писал(а):Can you attach your svg and describe the problem?
Perhaps there's a small handle that is not easily seen and does not have noticeable influence to the path but it can ruin all offsets.
Thanks but I managed to work around this problem.
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

Here's what I'm getting for my most consistent error message:

Traceback (most recent call last):

File "C:\Program Files\Inkscape\share\extensions\gcodetools.py", line 4616, in <module>

e.affect()

File "C:\Program Files\Inkscape\share\extensions\inkex.py", line 207, in affect

self.effect()

File "C:\Program Files\Inkscape\share\extensions\gcodetools.py", line 4564, in effect

self.engraving()

File "C:\Program Files\Inkscape\share\extensions\gcodetools.py", line 3969, in engraving

d, r = 0, float("inf")

ValueError: invalid literal for float(): inf
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

More pictures of things I've made using gcodetools.
Вложения
IMG_8576.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13067&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (494.86 КБ)</a>
IMG_8578.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13068&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1.17 МБ)</a>
IMG_8580.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13069&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1.2 МБ)</a>
IMG_8579.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13070&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1.17 МБ)</a>
IMG_8581.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13071&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1.27 МБ)</a>
IMG_8582.JPG (8895 просмотров) <a class='original' href='./download/file.php?id=13072&sid=d81f051cadfe774eeadda90aacfac2f7&mode=view' target=_blank>Загрузить оригинал (1.2 МБ)</a>
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Durachko писал(а):File "C:\Program Files\Inkscape\share\extensions\gcodetools.py", line 3969, in engraving

d, r = 0, float("inf")

ValueError: invalid literal for float(): inf
What version of Gcodetools are you using?
Try to change in that string from
d, r = 0, float("inf")
to
d, r = 0, 1e100
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

Nick писал(а): What version of Gcodetools are you using?
v1.6. If that's not current I'll update right now!
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

Updated to v1.7. I CANNOT FIND THAT LINE IN GCODETOOLS.PY??? SOMETHING REALLY FISHY IS GOING ON. I'LL DIG DEEPER.

Edit: I cannot find that line of code in the file gcodetools.py. The new version gives me the same error message. Any other suggestions?
Durachko
Новичок
Сообщения: 13
Зарегистрирован: 30 авг 2010, 17:52
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Durachko »

I updated Inkscape AND gcodetools and the engraving is working now. :oops: :oops:
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Durachko писал(а):I updated Inkscape AND gcodetools and the engraving is working now.
Great! :)
jano
Новичок
Сообщения: 1
Зарегистрирован: 06 апр 2013, 03:39
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение jano »

hi!

i'm pretty new to the g-codetools and i want to make a newbie question: how i make multiple passes with the same tool and for the same shape? i mean, i want to cut a shape in an aluminium plate of 2mm thick, to avoid heating the material and get better results i want to make this in a lot of passes (i.e. penetrating 0.1mm each pass), where i instruct to g-codetools to handle this? Thanks!
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

Just define depth step for the tool.
When you generate Gcode or just adding a "tool definition" using Tool's library. A green box appears in the drawing. You can chnge parameters in it using text tool (F8).

There's a small video about tools in Gcododetools http://www.youtube.com/watch?v=zMQplyEo ... oA&index=5
Ответить

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