g-code scaling

Asked by mike chaney

Hi, I'm having a problem with my inkscape to g-code scale. I created a test of some text that was 150mm wide. When I create the gcode it reduces it to 42mm wide. Both the height and width reduce. When I open the file using the Univ gcode program, the visualizer displays the dimensions, which agree with the cutting when I run the program. I looked at the cnc-club forum, but I did not see anything helpful there. Do you have any suggestions? thanks

Question information

Language:
English Edit question
Status:
Expired
For:
Inkscape Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Hachmann (marenhachmann) said :
#1

I think this might be due to the default template of Inkscape 0.92 being in mm.

Do you get the correct size if you start out with the 'default px' or maybe the default pt template (File > New from Template... > default px/pt)?

There might still be a small mismatch, even then. let us know if it corresponds to a 90:96 ratio.

See also: https://inkscape.org/en/learn/faq/#inkscape-092-my-drawings-are-just-quarter-their-original-size-when-i-open-them-program-xyz

Revision history for this message
mike chaney (mchaney200) said :
#2

Hi,
That seemed to work, at least from the visualizer, I'll try a test cut tomorrow.
Thanks for the quick reply.

Sent from my iPhone

> On Jan 14, 2018, at 3:47 PM, Hachmann <email address hidden> wrote:
>
> Your question #663069 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/663069
>
> Status: Open => Needs information
>
> Hachmann requested more information:
> I think this might be due to the default template of Inkscape 0.92 being
> in mm.
>
> Do you get the correct size if you start out with the 'default px' or
> maybe the default pt template (File > New from Template... > default
> px/pt)?
>
> There might still be a small mismatch, even then. let us know if it
> corresponds to a 90:96 ratio.
>
> See also: https://inkscape.org/en/learn/faq/#inkscape-092-my-drawings-
> are-just-quarter-their-original-size-when-i-open-them-program-xyz
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/inkscape/+question/663069
>
> You received this question notification because you asked the question.

Revision history for this message
Hachmann (marenhachmann) said :
#3

Please also let us know which option worked, so we know what to suggest to others (I don't have a plotter / cutter). Thanks!

Revision history for this message
mike chaney (mchaney200) said :
#4

Hachmann,
I tried both with noting the exact details, here are the results.
px-
It said the sheet was 210x297.
I created some test that was roughly fitted to the width of the page.
It said the text was 745 wide.
After exporting to g-code, the text was 276.5.

pt-
sheet was 210x297
text was 596
g-code text was 168.4.

So for now I'm thinking I can go back to the original way, and work with a
scale factor of 3.5.
that seemed to be pretty repeatable.
Unless you have some other ideas to try.

thanks.

On Sun, Jan 14, 2018 at 9:12 PM, Hachmann <
<email address hidden>> wrote:

> Your question #663069 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/663069
>
> Hachmann posted a new comment:
> Please also let us know which option worked, so we know what to suggest
> to others (I don't have a plotter / cutter). Thanks!
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Hachmann (marenhachmann) said :
#5

Okay, so on the forums, someone has posted a possible fix, can you have a look if it works for you?

This is the replacement file - rename the original gcodetools.py file in you Inkscape installation's share/extensions folder to gcodetools.py.bak and put this file in as gcodetools.py:
https://forum.inkscapecommunity.com/index.php?action=dlattach;topic=486.0;attach=1578

Info and discussion here:
https://forum.inkscapecommunity.com/index.php?topic=486.0

Please let me know if that works, because if it does, we can try to get this into the next Inkscape version.

I seem to get a perfect result with this. The software says 10x10 for a 10mm x 10 mm square, if placed in lower left corner of page, using the standard mm template (and no extra template) but I'd need confirmation from someone who can actually try it out.

Revision history for this message
mike chaney (mchaney200) said :
#6

It seemed to work perfect! Thanks so much for the great help.
I set the text to a width of 200 and that is what the result was after
exporting.
Here is a screenshot
[image: Inline image 1]

On Mon, Jan 15, 2018 at 9:32 PM, Hachmann <
<email address hidden>> wrote:

> Your question #663069 on Inkscape changed:
> https://answers.launchpad.net/inkscape/+question/663069
>
> Status: Open => Answered
>
> Hachmann proposed the following answer:
> Okay, so on the forums, someone has posted a possible fix, can you have
> a look if it works for you?
>
> This is the replacement file - rename the original gcodetools.py file in
> you Inkscape installation's share/extensions folder to gcodetools.py.bak
> and put this file in as gcodetools.py:
> https://forum.inkscapecommunity.com/index.php?action=dlattach;topic=486.
> 0;attach=1578
>
> Info and discussion here:
> https://forum.inkscapecommunity.com/index.php?topic=486.0
>
> Please let me know if that works, because if it does, we can try to get
> this into the next Inkscape version.
>
> I seem to get a perfect result with this. The software says 10x10 for a
> 10mm x 10 mm square, if placed in lower left corner of page, using the
> standard mm template (and no extra template) but I'd need confirmation
> from someone who can actually try it out.
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/inkscape/+question/663069/+
> confirm?answer_id=4
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/inkscape/+question/663069
>
> You received this question notification because you asked the question.
>

Revision history for this message
Hachmann (marenhachmann) said :
#7

Sadly, screenshots (or rather: email attachments) do not work in launchpad answers. But I'm glad that the fix from the forums is working for you. I'll go ahead and will ask the author for permission to make a request to get this into Inkscape's code.

Thank you!

Revision history for this message
Launchpad Janitor (janitor) said :
#8

This question was expired because it remained in the 'Open' state without activity for the last 15 days.

Revision history for this message
Hachmann (marenhachmann) said :
#9

The changes have been adopted into Inkscape 0.92.3 and Inkscape 0.93.