Inkscape.org
  1. #1
    jeypee33 jeypee33 @jeypee33
    Hello everyone and Happy New Year.
    
    I'm trying to cut out a shape (a square for testing). For that I draw the shape and then I use the gcodetools extension.
    I setup the origins and the tools and finally I convert path to g-code.
    In the tools section I setup the diameter of the cutter (2mm in my case) but when I cut the piece with the generated g-code the diameter of the cutter is not taken into account (all edges length of my square are 98mm instead 100mm).
    Can someone help me find my mistake?
    Thanks in advance.
    
    Capture D’ÉCran 2023 01 02 À 00.09.51
  2. #2
    Polygon Polygon @Polygon🌶

    Have you tried setting the bounding box to "visual" in Preferences->Tools->Bounding Box to use?

  3. #3
    jeypee33 jeypee33 @jeypee33

    Hello @Polygon and thank you for your reply but my bounding box parameter was already set to visual.

  4. #4
    Polygon Polygon @Polygon🌶

    Bummer - I have no clue then other to add 4mm to the size to receive at least the 100x100mm cutout - but I guess that´s just a example or proof-of-concept. This add-on is not my cup of tea unfortunately.

  5. #5
    Rudy Sneppe Rudy Sneppe @Gij_Kieken

    @jeypee33, Hello I'am aware of the fact that he thread is nearly one year ago, but did you find a solution ore work around to address the probem?

    That is becuase I had a similar problem with cutting holes using Dxf-points and believe I found some how somewhere kind a solution.

  6. #6
    MrKev MrKev @MrKev

    Hello, same issue. Other settings from tool library extension used but tool diameter ignored in calculations. Any solution?

  7. #7
    Rudy Sneppe Rudy Sneppe @Gij_Kieken
    *

    Purpose :Milling a rectangle with a circle inside it.(my native language is flemisch so be gentel with me)
    Problem :As far as I know Inkscape in combination with g-code extension does not take any tool offset into account.
    So if you are just experimenting with laser engraving, due to the small size of the laser beam this is usually not a problem.
    Just as of a way of demo.(one could take a traced bitmap aswell)
    Lets get started:
    -Open a new inkscape design <Ctrl+N>
    -Give it a suitable name eg inset_outset_demo.svg and remember to save your work now and then ore set autoSave On
    -Set Snap on (to grid)
    -I use to work in mm, so all my settings are in mm (Everything should work in inches to, so feel free too choose your favorites)
    -Next set a grid (this is optional)X-origin 0.00, Y-origin 0.00, X-distance 1.00, Y-distance 1.00, main-grid every 5mm
    -For the ease of use Rename layer0 to base-layer, set the drawing color to black(or everything you want)that comes in handy later on
    -Create two New Layers on top of each other layer1(name outset-layer drawing color red), layer2(name inset-layer drawing color blue)
    -Draw a rectangle 100 by 100mm Fill=off lineColor=black line style=0.2mm origin X=10.0 Y=10.0mm,object to path Shift+Ctrl+C
    -Draw an elipses diameter 50mm Fill=off lineColor=black line style=0.2mm Rx:25.0 Ry:25.0 Begin:0.00 end:0.00,object to path Shift+Ctrl+C
    -Align it to the center of the square Shift+Ctrl+A
    -Select the Square on the base-layer and duplicate it Ctrl+D, bring it to the outset-layer Shift+Page Up,line color=red
    -Select the Circle on the base-layer and duplicate it Ctrl+D, take it to the inset-layer Shift+Page Up twice,line color=blue
    -Supose you have an endmill diam 8mm (again this is to show the effect)
    -Go to Inkscape Preferances Shift+Ctrl+P,select Steps,choose > & < Scale with: and alter the value to 8mm
    -Go to the outset-layer and select the square,click and hold down the Shift key press the > bracket one time [do not use Ctrl+)]
    -This results in a 4mm bigger offset ready to mill with a 8mm end-mill
    -Now go to the inset-layer and select the cirle,press the < key to shrink the circle with 8mm
    -This results in a 4mm smaler offset ready to mill with a 8mm end-mill
    -The rest of the story should be common practice
    -In gcode extension set the orientation points for both of the layers aswell of the cutting tools
    -Do path to gcode for each layer
    -For the rectangle
    %
    (Header)
    (Generated by gcodetools from Inkscape.)
    (Gij Kieken)
    (Default startpoint is bottom left.)
    (Header end.)
    G90
    G21 (All units in mm)

    (Pass at depth -0.5)
    (Start cutting path id: path833)
    (4mm tool offset bigger)
    (Change tool to Default tool)

    G00 Z 8.0000
    G00 X 6.0080 Y 113.9920
    M3 S1000
    G01 Z -0.5000 F 100.0000(Penetrate)
    G01 X 113.9920 Y 113.9920 Z -0.5000 F 100.0000
    G01 X 113.9920 Y 6.0080 Z -0.5000
    G01 X 6.0080 Y 6.0080 Z -0.5000
    G01 X 6.0080 Y 113.9920 Z -0.5000
    G00 Z 8.0000

    (End cutting path id: path833)


    (Pass at depth -1.0)
    (Start cutting path id: path833)
    (4mm tool offset bigger)
    (Change tool to Default tool)

    G00 Z 8.0000
    G00 X 6.0080 Y 113.9920
    M3 S1000
    G01 Z -1.0000 F 100.0000(Penetrate)
    G01 X 113.9920 Y 113.9920 Z -1.0000 F 100.0000
    G01 X 113.9920 Y 6.0080 Z -1.0000
    G01 X 6.0080 Y 6.0080 Z -1.0000
    G01 X 6.0080 Y 113.9920 Z -1.0000
    G00 Z 8.0000

    (End cutting path id: path833)

    (Footer)
    M5
    G00 X0.0000 Y0.0000
    M2
    (end)
    %
    -For the circle
    %
    (Header)
    (Generated by gcodetools from Inkscape.)
    (Gij Kieken)
    (Default startpoint is bottom left.)
    (Header end.)
    G90
    G21 (All units in mm)

    (Pass at depth -0.5)
    (Start cutting path id: path836)
    (4mm tool offset smaler)
    (Change tool to Default tool)

    G00 Z 8.0000
    G00 X 81.0159 Y 60.0000
    M3 S1000
    G01 Z -0.5000 F 90.0000(Penetrate)
    G02 X 79.4162 Y 51.9575 Z -0.5000 I -21.0159 J -0.0000 F 80.0000
    G02 X 74.8605 Y 45.1395 Z -0.5000 I -19.4162 J 8.0424
    G02 X 68.0425 Y 40.5838 Z -0.5000 I -14.8605 J 14.8605
    G02 X 60.0000 Y 38.9841 Z -0.5000 I -8.0425 J 19.4162
    G02 X 51.9575 Y 40.5838 Z -0.5000 I -0.0000 J 21.0159
    G02 X 45.1395 Y 45.1395 Z -0.5000 I 8.0425 J 19.4162
    G02 X 40.5838 Y 51.9575 Z -0.5000 I 14.8605 J 14.8605
    G02 X 38.9841 Y 60.0000 Z -0.5000 I 19.4162 J 8.0424
    G02 X 40.5838 Y 68.0425 Z -0.5000 I 21.0159 J 0.0000
    G02 X 45.1395 Y 74.8605 Z -0.5000 I 19.4162 J -8.0424
    G02 X 51.9575 Y 79.4162 Z -0.5000 I 14.8605 J -14.8605
    G02 X 60.0000 Y 81.0159 Z -0.5000 I 8.0425 J -19.4162
    G02 X 68.0425 Y 79.4162 Z -0.5000 I 0.0000 J -21.0159
    G02 X 74.8605 Y 74.8605 Z -0.5000 I -8.0425 J -19.4162
    G02 X 79.4162 Y 68.0425 Z -0.5000 I -14.8605 J -14.8605
    G02 X 81.0159 Y 60.0000 Z -0.5000 I -19.4162 J -8.0424
    G01 X 81.0159 Y 60.0000 Z -0.5000
    G00 Z 8.0000

    (End cutting path id: path836)


    (Pass at depth -1.0)
    (Start cutting path id: path836)
    (4mm tool offset smaler)
    (Change tool to Default tool)

    G00 Z 8.0000
    G00 X 81.0159 Y 60.0000
    M3 S1000
    G01 Z -1.0000 F 90.0000(Penetrate)
    G02 X 79.4162 Y 51.9575 Z -1.0000 I -21.0159 J -0.0000 F 80.0000
    G02 X 74.8605 Y 45.1395 Z -1.0000 I -19.4162 J 8.0424
    G02 X 68.0425 Y 40.5838 Z -1.0000 I -14.8605 J 14.8605
    G02 X 60.0000 Y 38.9841 Z -1.0000 I -8.0425 J 19.4162
    G02 X 51.9575 Y 40.5838 Z -1.0000 I -0.0000 J 21.0159
    G02 X 45.1395 Y 45.1395 Z -1.0000 I 8.0425 J 19.4162
    G02 X 40.5838 Y 51.9575 Z -1.0000 I 14.8605 J 14.8605
    G02 X 38.9841 Y 60.0000 Z -1.0000 I 19.4162 J 8.0424
    G02 X 40.5838 Y 68.0425 Z -1.0000 I 21.0159 J 0.0000
    G02 X 45.1395 Y 74.8605 Z -1.0000 I 19.4162 J -8.0424
    G02 X 51.9575 Y 79.4162 Z -1.0000 I 14.8605 J -14.8605
    G02 X 60.0000 Y 81.0159 Z -1.0000 I 8.0425 J -19.4162
    G02 X 68.0425 Y 79.4162 Z -1.0000 I 0.0000 J -21.0159
    G02 X 74.8605 Y 74.8605 Z -1.0000 I -8.0425 J -19.4162
    G02 X 79.4162 Y 68.0425 Z -1.0000 I -14.8605 J -14.8605
    G02 X 81.0159 Y 60.0000 Z -1.0000 I -19.4162 J -8.0424
    G01 X 81.0159 Y 60.0000 Z -1.0000
    G00 Z 8.0000

    (End cutting path id: path836)

    (Footer)
    M5
    G00 X0.0000 Y0.0000
    M2
    (end)
    %

    -Give it a try, an other approch would be with the line style width and path union, path brake appart etc...

  8. #8
    Rudy Sneppe Rudy Sneppe @Gij_Kieken

    I'am a windows user and most of the time I am using Inkscape 0.91,just because I am familiar with it and it does want I want it do and with a quicker response than 1.2 and 1.3.(read faster)

    So my appologies ,just found out that in Inkscape 1.3 you have to use Ctrl+) & Ctrl+(. (Path offsett)

    Maybe it is a bug, or was a bug in 0.91, never mind ,just use what suits you best.

    Using Dynamic Offset is not good practice because your design gets destroyed by rounding the corners.

    Have a nice day,,,