cnc-club / gcodetools

CAM extension for Inkscape to export paths to Gcode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incorrect orientation points

jazzynico opened this issue · comments

Issue first reported in the Inkscape bug tracker (https://bugs.launchpad.net/gcodetools/+bug/1680760).
For your information Inkscape 0.92 uses Gcodetools v1.7.

Hi, I have been using inkscape for a long time to generate G code for home milling, and it has always been great, but I installed the new version of Inkscape, and when I generate the code, it comes out much smaller than I originally drew it, This is because the second targeting point, which should dial 100mm, does it in a very different position, attached screenshot with the error, I have tried to reinstall both the 32-bit version and the 64-bit version, both fail, I have tested it on two different PC's in case there was any failure in old files.

I'm a little desperate because I can not generate any code or find the workaround. I've tried moving the orientation point by hand, but generating the code tells me that it does not exist and re-creates it in the same wrong place.

Same problem here !

the scale of my document is set correctly (A4 size document), but the 2nd Orientation point is outside of the page....
Did you manage to solve this ?

Kind regards, Guy
orientation_points

I fix the orientation points manually: double click to enter the group, select the subgroup that is supposed to be at 100, change X coordinate to 100 (effectively moving it to 100mm)

m0n5ter: Thanks so much for this workaround! I tried narrowing the orientation points box and snapping the point of the right hand arrow to a guide I'd put at 100mm, but your method of forcing the subgroup to x=100mm is even easier. Now I can continue to use the cool new features in 0.92!

Thank you very much for the development of GCodeTools. I Like it very much and find it very useful for my little CNC. With the installation of version 0.92 of Inkscape I was suffering the mysterious displacement of orientation points but finally, this is what I did and with it, the drawings are showing right for me and the GCode is coming out with the specified dimensions. I am referring in my case to Inkscape installation of ver. 0.92.2 (windows x64):

  1. In the gcodetools.py file (in: "Inkscape\share\extensions" directory in Windows), at lines 5859 (case of units in mm) & 5863 (case of units in inches) I did the following changes:
line Has Change to**
5859 orientation_scale = 3.5433070660 orientation_scale = 1
5863 orientation_scale = 90 orientation_scale = 25.4

That was it!

Then, I also noticed that:

  1. The page template should specify the viewbox in mm, otherwise, the arrow points are of any size (huge in my case) and any place. The line in the template should look like this (for a landscape letter size page):

viewBox="0 0 279.4 215.9"

In any case, I noticed that all that I have to take care of in the document properties window, is that the scale should be 1.0 if display units are mm and 25.4 if set to inches.

With this fixes, I am again up and running, but perhaps a more thorough check of what is going on with this issue in ver. 0.92 is needed, so please have a look at it.

commented

A user at inkscapecommunity.com has published a fix, which has now been included into the development versions for Inkscape 0.92.3 and 0.93.

More info at: https://gitlab.com/inkscape/inkscape/merge_requests/196