Страница 24 из 32
Inkscape Gcodetools plug-in English support forum
Добавлено: 10 дек 2009, 10:28
Nick

- Generated Gcode in EMC2
| Type | Extension of vector
graphics editor Inkscape |
| Developer | Gcodetools develop team |
| Written in | Python |
| OS | Cross-Platform (Windows, Linux, MacOS) |
| Version | 1.6.03 |
| License | GNU GPL |
| Downloads | 7800+ |
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

- Gcodetools area pocketing

- Gcodetools lathe

- Gcodetools engraving by Rene

- 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
Get latest version (для просмотра содержимого нажмите на ссылку)Get latest versions
Latest stable version
Gcodetools 1.7
Older versions(ver 1.5)
(ver 1.5)
(ver 1.4)
(ver 1.2)
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:
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.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 02 фев 2014, 18:40
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
RGcodetools on a Mac?
Добавлено: 10 фев 2014, 02:07
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
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 14 фев 2014, 11:51
Nick
You need to make python-lxml available from python try to open console
start python and try to import the library.
PS do other extension work or not?
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 25 фев 2014, 00:09
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
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 30 мар 2014, 23:43
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...
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 31 мар 2014, 10:59
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.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 16 апр 2014, 11:26
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.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 22 апр 2014, 13:46
Nick
I'm not sure if this function is implemented already...
yep... it seems it is not implemented..............
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 22 апр 2014, 15:43
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

Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 25 май 2014, 17:07
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
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 26 май 2014, 08:18
Nick
Can you attach your svg?
Was it imported from another software (Corel, AI, something else), or have been drawn in inkscape from scratch?
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 26 май 2014, 22:45
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.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 27 май 2014, 08:28
Nick
hmmm... that's a strange behavior... can you attach exact svg, which causes problems... No matter if it's only simple circle...
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 29 май 2014, 11:58
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.
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 29 май 2014, 12:17
Nick
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 01 июн 2014, 01:39
bborncr
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
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 02 июн 2014, 13:06
Nick
What python version is installed in your MacOS?
That strange because there seems no error in this line...
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 02 июн 2014, 18:15
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,
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 02 июн 2014, 19:18
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,
Re: Inkscape Gcodetools plug-in English support forum
Добавлено: 23 июн 2014, 22:27
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.
