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 (1317557 просмотров) <a class='original' href='./download/file.php?id=508&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&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 (1320481 просмотр) <a class='original' href='./download/file.php?id=130&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (154.76 КБ)</a>
Preview of the generated Gcode in EMC
Gcodetools area pocketing (1306584 просмотра) <a class='original' href='./download/file.php?id=772&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (147.75 КБ)</a>
Gcodetools area pocketing
Gcodetools lathe (1312905 просмотров) <a class='original' href='./download/file.php?id=642&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (21.98 КБ)</a>
Gcodetools lathe
Gcodetools engraving by Rene (1313070 просмотров) <a class='original' href='./download/file.php?id=631&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (233.84 КБ)</a>
Gcodetools engraving by Rene
Bears by Durachko (1248528 просмотров) <a class='original' href='./download/file.php?id=5429&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&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) (1320484 просмотра) <a class='original' href='./download/file.php?id=127&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (752.7 КБ)</a>
Gcodetools plug-in tutorial (2600*1300 px png ~ 700Kb)
Curve to Gcode result (1320490 просмотров) <a class='original' href='./download/file.php?id=103&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (1023.52 КБ)</a>
Curve to Gcode result
Preview of the generated Gcode in EMC (1320481 просмотр) <a class='original' href='./download/file.php?id=130&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&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 КБ) 102151 скачивание
Older versions(ver 1.5)
gcodetools-1.6.tar.gz
Gcodetools 1.6
(56.6 КБ) 14972 скачивания
(ver 1.5)
gcodetools.tar.gz
Gcodetools 1.5
(21.32 КБ) 10555 скачиваний
(ver 1.4)
gcodetools.tar.gz
(14.72 КБ) 27104 скачивания
(ver 1.2)
extensions.tar.gz
(9.01 КБ) 10334 скачивания

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.
billt
Новичок
Сообщения: 8
Зарегистрирован: 21 окт 2013, 18:11
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение billt »

Oops.
I must have ungrouped the orientation points from the path group.
When I grouped everything plus orientation points, the result was corrected.
I also found that you need to group the tool definition box as well.
Sorry for the lame posts - hopefully my ignorance may be helpful (or at least entertaining...) to others.
- BillT
wscrivens
Новичок
Сообщения: 1
Зарегистрирован: 04 фев 2014, 01:58
Репутация: 0
Контактная информация:

RGcodetools on a Mac?

Сообщение wscrivens »

I've been using Gcodetools with Inkscape on a Ububtu virtual machine on my Mac, with no problems othere than the inconvenience of having to work with the VM.

I tried installing on the Mac, and Inkscape works fine, so I put the Gcodetools files in what seems to be the correct folder, /Applications/Inkscape.app/Contents/Resources/extensions. The Gcodetools menu comes up OK, but the first thing I tried was to set orientation points, and I got this message:
The fantastic lxml wrapper for libxml2 is required by inkex.py and therefore this extension. Please download and install the latest version from http://cheeseshop.python.org/pypi/lxml/, or install it through your package manager by a command like: sudo apt-get install python-lxml
I followed the instructions from cheeseshop for the Mac, and installed lxml using pip, with no errors reported, but the error from Gcodetools still appears. I've tried a reboot of teh Mac, but still the error persists. I'm thinking there may be an environment variable ors symlink that I need to install, but I'm stumped at this point.

Can anyone help here? Thanks.

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

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

You need to make python-lxml available from python try to open console
start python and try to import the library.

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

python 
import lxml
PS do other extension work or not?
tjmarch
Новичок
Сообщения: 2
Зарегистрирован: 27 сен 2013, 03:26
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение tjmarch »

billt писал(а):Nick -

Great program!

Would you be willing to add a drag-knife feature as well?

The purpose is similar to the tangential knife that you already have available, however the cutting tool rotation is not powered, it swivels on bearings within the tool holder and the knife tip is offset from the tool centerline which "drags" behind the machine path. This type of tool cuts sign vinyl, cardboard, wood veneer, ...
A lot of information and videos can be found at http://www.donektools.com.

Without compensation, sharp corners are rounded due to the drag-knife tip offset.
"Corner features" can be added for an overcut and swivel arc to the next cut segment.
Also a "retract" feature at the corners which retracts during the swivel motion for thick materials.
Note, the blade must first be oriented toward the +X direction which allows the first point to be precisely located.

I have written a python script for CamBam which creates these features.
Hopefully it can be incorporated into your GCodeTools fairly easily.

The script also includes calculations for the knife tip to exactly follow arc paths.
The concept is based on bicycle front/rear wheel paths.
The "front wheel" is driven by the machine engrave path, and the knife tip is the "rear wheel".
The tool offset (distance from the tool centerline to knife tip) correlates to the bike wheelbase.
Basic gormulas for bike wheel path are found at: http://math.ucsd.edu/~ebender/87/bicycle.pdf

CamBam uses "Polylines" which are composed of two end points and a "Bulge"
Bulge is defined as tan(sweep angle/4) for arc segments, so bulge=0 produces a straight line.
My script uses the Bulge quantity, so a bit of tweaking might be necessary to work with biarc segments (3 points?).

I can of course help with modifying the script if I can get a bit of help on your functions and variables.

Thanks! BillT

The following Link is to a download package that I made up for the programs and method I use to create gcode for the Donek drag knife to cut Redi-Board for making RC model airplanes. If you are hobbyist on a low budget it is worth the look. InKscape is mentioned in word doc that is included. The package is a zip file, in Windows 7 after you download the file right click on the file and choose to extract. All the software that is included is free to use no strings attached.http://ubuntuone.com/41QpyBkkTxyKiMY5ImKYWz
kokobill
Новичок
Сообщения: 1
Зарегистрирован: 30 мар 2014, 23:34
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение kokobill »

Hi i am new in the world of programming and i just gave a quick look on the .py file and it seemed quite complicated. Testing the plug-in on my custom made cnc with plasma i can see it creates blocks of "cutting" code starting from the most bottom-left piece (ENTRY POINT) to be cut. I would like to change the series of blocks created (for example to let the outline be cut as the LAST piece so it will stay still until all other cuts are made) and also i would like to avoid small and "next to each other" areas to be cut sequentially because my surface gets to hot there and it deforms a bit. Is there a way to avoid g code "cutting" blocks be created sequentially and try them maybe in random order? maybe is there a way to avoid cutting sequentially "pieces" that are near the previous by some "measurment"... Can anyone help me with the code and show me where this "order" is created and then i could try to change it...
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

there's an option "sort paths to reduce rappid distance" try to uncheck it.\
then you can reorder your paths in any way you want. The paths will be cut in the order they appear in imaginary Z axis - the paths that are obove others are cut first.
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

Hi

I'm a little confused with the "penetration angle" in the tool description. What is this value for ? I mean the value does'nt change anything in the gcode produced : penetration angle for the tool is always 0 (penetration along Z axis only).

So as my cylindrical cutter can not penetrate vertically in the part because cutting egeds does not overlap, I must modifiy manually all the files produced to add a x/y move while penetrating, wich is quite long and boring and mistakes-generative when there are a lot of pathes to cut...

Is there a way to make this work automatically as expected ? Or did I misunderstand something and this is not what I expect ?

Thank you.
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

I'm not sure if this function is implemented already...

yep... it seems it is not implemented..............
Аватара пользователя
bricofoy
Новичок
Сообщения: 14
Зарегистрирован: 08 сен 2011, 14:00
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bricofoy »

ok, so it's normal it's not working... I expected I did something wrong, so sad it was not me.

let's keep with manually adding penetration angles, then :P
-Hey, know what ? If you read the back of the Windows CD you'll ear a satanic song !
-Ho, there's even worse : read it normally, it will install !
peanutty420
Новичок
Сообщения: 3
Зарегистрирован: 25 май 2014, 15:41
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение peanutty420 »

i am having trouble with gcodetools extensions... I am getting this back when i try to add orientation points, tools, or path to gcode-

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

Traceback (most recent call last):
  File "gcodetools.py", line 6749, in <module>
    gcodetools.affect()					
  File "C:\Program Files\Inkscape-0.48\share\extensions\inkex.py", line 215, in affect
    self.effect()
  File "gcodetools.py", line 6661, in effect
    self.get_info()
  File "gcodetools.py", line 4283, in get_info
    recursive_search(self.document.getroot(),self.document.getroot())
  File "gcodetools.py", line 4238, in recursive_search
    recursive_search(i,i)
  File "gcodetools.py", line 4241, in recursive_search
    points = self.get_orientation_points(i)
  File "gcodetools.py", line 4328, 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'
Any help would be great....im using windows 8 and inkscape .48 64 bit and gcodetools v1.7

ps all was working fine the other day this just seemed to spring up after creating about 10 files without any problems... Ive also tried reinstalling all software
except os
Аватара пользователя
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?
Was it imported from another software (Corel, AI, something else), or have been drawn in inkscape from scratch?
peanutty420
Новичок
Сообщения: 3
Зарегистрирован: 25 май 2014, 15:41
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение peanutty420 »

no it is a circle created with inkscape just a simple circle drawing so i can learn the gcodetools functions but all of a sudden they stopped working. I have dualboot with linux so i have switched temporarily and everything works fine there.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

hmmm... that's a strange behavior... can you attach exact svg, which causes problems... No matter if it's only simple circle...
shangJie
Новичок
Сообщения: 1
Зарегистрирован: 29 май 2014, 11:46
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение shangJie »

Hi there!

Maybe this question is out there somewhere, but I haven't been able to find it by Google yet.

Is there any tutorial on using the "additional post-processor" option in Path to Gcode? I'd like to be able to write a custom post-processor add some custom macros in at different points, but not sure how to go about this.
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

There's a small manual here:
Gcodetools - Postprocessing #1
bborncr
Новичок
Сообщения: 3
Зарегистрирован: 01 июн 2014, 01:15
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bborncr »

Screen Shot 2014-05-31 at 4.36.39 PM.png (8660 просмотров) <a class='original' href='./download/file.php?id=28888&sid=4fec4639e7f2380cd54d5dc3b2f30fc9&mode=view' target=_blank>Загрузить оригинал (31.59 КБ)</a>
I am using Gcodetool 1.7 on a Mac (10.7.5) with Inkscape 0.48.2. I was able to use the extension but now I get the following error when I attempt to Apply the Orientation Points:

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

gcodetools.py:2481: Warning: 'as' will become a reserved keyword in Python 2.6
  File "gcodetools.py", line 2481
    except Exception as ex :	
                      ^
SyntaxError: invalid syntax
Аватара пользователя
Nick
Мастер
Сообщения: 22776
Зарегистрирован: 23 ноя 2009, 16:45
Репутация: 1735
Заслуга: Developer
Откуда: Gatchina, Saint-Petersburg distr., Russia
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение Nick »

What python version is installed in your MacOS?
That strange because there seems no error in this line...
bborncr
Новичок
Сообщения: 3
Зарегистрирован: 01 июн 2014, 01:15
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bborncr »

When I type in python in the console: Python 2.7.1 is returned. It all worked a couple of weeks ago and nothing in the code has been changed. Probably when I installed some other apps something in the paths has been changed. If there is nothing obvious I'll focus on the python installation.

Thanks,
bborncr
Новичок
Сообщения: 3
Зарегистрирован: 01 июн 2014, 01:15
Репутация: 1
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение bborncr »

Fixed! The Eggbot plug-in modifies the Inkscape script and forces python 2.5. I commented out the line and it all works fine.

Thanks,
peanutty420
Новичок
Сообщения: 3
Зарегистрирован: 25 май 2014, 15:41
Репутация: 0
Контактная информация:

Re: Inkscape Gcodetools plug-in English support forum

Сообщение peanutty420 »

Nick писал(а):hmmm... that's a strange behavior... can you attach exact svg, which causes problems... No matter if it's only simple circle...

It happens with anything i create. it will add orientation points, but when i try to add tool and path to gcode it returns this same error.

My other problem is i cant get the controller program to recognize my board in linux but gcodetools works fine so i can basically only do half the process with either OS im using!!!

Could this be a problem with java... I remember having to troubleshoot something to do with java when i first started setting everything up but I really struggle with troubleshooting software so i am lost. :thinking:
Ответить

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