Inkscape.org
Beginners' Questions Object to Path in FreeCAD Flattened SVG Export
  1. #1
    TroughOClock2 TroughOClock2 @TroughOClock2

    I have a beginner's question. I'm using InkscapeVersion 1.0 (4035a4fb49, 2020-05-01) to post-process SVG files for laser cutting. I create the critical geometry in FreeCAD (Version 0.18 Revision 4) with the Sketcher workbench and export as flattened SVG, then open with Inkscape to add some artistic details.

    I'm having an issue when converting the object to a path. Upon opening the SVG in Inkscape, everything looks as expected: the corners have the circles for stress relief as in FreeCAD:

    However, when I switch to the Edit Paths by Nodes tool, the red line of the path differs substantially from the original black line:

    If I make a change to any node (e.g. moving a node a little), the entire black line is moved to match the red line.

    I think I'm not understanding the difference between the black and red lines. Is the black line an object and the red line a path? Can I instruct Inkscape to convert the black line to a path with a closer adherence to the original (e.g. with more nodes)?

    Thanks in advance

  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    Can you share the freeCad file in a Zip? I think I've seen this before.

  3. #3
    TroughOClock2 TroughOClock2 @TroughOClock2

    Hi Tyler, here is the FreeCAD file (and the svg export)

    Thanks for the help

  4. #4
    Tyler Durden Tyler Durden @TylerDurden

    That's strange behavior, and I don't recall if there is a real solution for it. I tried jacking the numeric precision and exponent way up ,but that didn't seem to help.

    I was able to save a dxf and convert it to a version that Inkscape will digest, using LibreCad. That allowed me to scale up the design 10x and add more nodes in Inkscape before scaling back down. That sorta works, but it sure is a few hoops to go through. I would try to work in 10x scale in FC and scale down in Inkscape after adding nodes and other features.

    Attached is the file via FC>DXF>LC>10X>DXF>Inkscape>+nodes>/10.

     

    Hella handle, BTW. :-)

    Trail Area Nodes 3Mm 2Tdlc10
  5. #5
    TroughOClock2 TroughOClock2 @TroughOClock2

    Hi Tyler, thanks very much for the assistance Maybe I'll try doing a bit more directly in Inkscape if the workaround gets too cumbersome.

  6. #6
    Aero Aero @Aero◻️

    One way to do this directly in Inkscape 1.0.

    Select all and cut to clipboard. In the now empty document, go to document properties and set display units to mm and scale to 10. Use Paste in place to bring the content back at the same size and position as before. The red line should now match the black line.
     

  7. #7
    TroughOClock2 TroughOClock2 @TroughOClock2

    @Aero Thanks for the tip, that worked nicely and is quick too

Inkscape Inkscape.org Inkscape Forum Beginners' Questions Object to Path in FreeCAD Flattened SVG Export