Inkscape.org
Using Inkscape with Other Programs Problems using svg from Inkscape in CAD program to create 3D prints.
  1. #1
    acouchy acouchy @acouchy

    Hi,

    I am in need of good advice/help about how to use a svg created in Inkscape in a CAD program. My first problem is I don't know the correct terminology so I will try my best to describe what I am trying to do.

    I import a png and trace to bitmap. When I open in the file in the CAD program and put the cursor on it to select the outline it only will select a small section of the outline (I'm guessing this has to do with the nodes. I've tried selecting them all and using the join selected nodes in Inkscape but it doesn't fix my issue). I need to be able to select the entire outline. I am wanting to use the sweep feature in my CAD program around the graphic outline.

    Thanks!

    3D
  2. #2
    Tyler Durden Tyler Durden @TylerDurden

    More details will be helpful, plus an example Inkscape svg file.

     

  3. #3
    fred_dot_u fred_dot_u @fred_dot_u

    If you can attach your SVG file for others including myself to examine, the solution will be more easily determined.

  4. #4
    Polygon Polygon @Polygon🌶

    You can try this SVG in your CAD. I´d like to see how it handles the upper middle part:

  5. #5
    fred_dot_u fred_dot_u @fred_dot_u

    @polygon, consider to zip your image file to attach it. In its current state, it's presenting not as an SVG and becomes problematic for the OP.

  6. #6
    Polygon Polygon @Polygon🌶

    What? Simply drag it out of the browser window to your desktop or where ever you like or make a right-click to tell "save image to....".

  7. #7
    fred_dot_u fred_dot_u @fred_dot_u

    Yes, that did work, thanks

  8. #8
    Tyler Durden Tyler Durden @TylerDurden

    The OP's sweep dialog may include a "chain segments" option that needs to be selected.

     

    Fusion360 20230328081729
  9. #9
    acouchy acouchy @acouchy

    Thank you all for responding. Sorry it has taken so long to reply but life got in the way for a bit, but figuring this out is very important to me.

    I will read though the responses and try anything suggested and I will attach my original heart.png and the .svg file that I created.

    Here are the steps I took…

    I imported it into Inkscape.

    Path - Trace Bitmap…

    Deleted the original .png file.

    Fill off, Stroke Paint on.

    Resized it to 20mm x 20mm.

    It won’t let me use the Sweep feature in my CAD program to go around the entire outline. It will only sweep a small segment (between two of nodes?). I’ve tried union, combine and join nodes in different orders. I just don’t know where I am going wrong.

    Thank you all again.

    20Mmheart
    Heart
  10. #10
    Polygon Polygon @Polygon🌶
    *

    Have  you tried the SVG file from reply#4 already?

  11. #11
    Tyler Durden Tyler Durden @TylerDurden
    *

    Please describe the version of Inkscape and system info.

    Please describe which cad program is being used.

    Please attach an example Inkscape svg file that has the problem and the bitmap artwork used. 

     

  12. #12
    acouchy acouchy @acouchy
    *

    @Polygon It crashes my program. It won't even open it. Instant crash. Maybe my program isn't good enough and it is time for me to learn another program. The strange thing is that I can create a star in Inkscape and save as .svg and open it in my program and it will allow me to sweep around the entire object but if I import a .png and convert it to a .svg in Inkscape it only will sweep a small section. I don't understand why. I don't understand the difference. I also tried loading your graphic into FreeCAD and still shows it being in segments.

    @TylerDurden  My Inkscape version is 1.1. My .png file and my .svg files are attached to my #9 message.

    Freecad
  13. #13
    Tyler Durden Tyler Durden @TylerDurden

    I notice the sketch has some duplicated nodes. I'd remove those and try path simplify.

     

  14. #14
    fred_dot_u fred_dot_u @fred_dot_u

    @TylerDurden, how does one determine an overlapped node? I was able to locate a single overlap and removed it, but used a different program from the standpoint of convenience. I opened the original in Inkscape 0.92 and was not able to find the overlapping node. Is there a feature in the pull-down menus that provide for this identification?

  15. #15
    Tyler Durden Tyler Durden @TylerDurden

    There might be some extensions that find short paths, but I usually see them as tiny grey nodes when all nodes are selected (single nodes are blue).

  16. #16
    fred_dot_u fred_dot_u @fred_dot_u

    That's curious, as there are no grey nodes in v0.92 when all are selected, only blue.

  17. #17
    Tyler Durden Tyler Durden @TylerDurden

    Ja that's weird, but the doubled nodes are smaller than normal nodes, when unselected.

  18. #18
    fred_dot_u fred_dot_u @fred_dot_u
    *

    Yes, that's the one that stood out like a sore thumb drive in the other program. Perhaps the OP will remove it and find all is well.

    This is the repaired version for the benefit of OP.

    20Mmheart Minus Overlap
  19. #19
    Polygon Polygon @Polygon🌶

    That doesn´t make any sense, especially the crashing: Where´s the difference between my Inkscape SVG and the corrected autotraced above aside from mine is cleaner by using a minimum of nodes. Wether you´re using B-Splines or Bézier curves in an SVG FreeCAD will always find segments when loading "SVG as geometry". And there´s a function that will sweep along segment-by-segment.

  20. #20
    Tyler Durden Tyler Durden @TylerDurden

    So, the question remains, why does the star (reportedly) work? I did not see a chain-segments option in FC.

     

  21. #21
    acouchy acouchy @acouchy
    *

    I still have a copy of the old 123D CAD program that I am using. Unfortunately, it doesn't have the chain-segments option. And yes, I know that I need to learn a better CAD program. I find that it is just the right level of complex for my brain to handle. And, I still have a dinosaur of a 3D printer that I refuse to let go of too. Lol.

    Anyways, when I draw a star in Inkscape and export it as a plain .svg the entire outline can be swept but the heart .png converted to .svg in Inkscape does not work. Makes no sense. I'm baffled. I'll attach a photo and the file as proof of this.

    I did notice that strange little node and delete it when I was trying to figure this out yesterday and it didn't help. I'll download the fixed file above and give it a go again. I'm going to try converting some other .png files to see if it is the same with all of them.

    Thanks for all the help.

    Screenshot 2023 03 27 132909
    20Mmstarcuttershape
  22. #22
    Polygon Polygon @Polygon🌶
    *
    TylerDurden

    I did not see a chain-segments option in FC.

    https://www.youtube.com/watch?v=SE4gNifVemc

  23. #23
    Tyler Durden Tyler Durden @TylerDurden

    Saw that already. That video does not show chaining of segments, which will sweep the entire path in one go.

  24. #24
    Polygon Polygon @Polygon🌶

    As I said: It will go segment by segment. Maybe because it can´t handle curvatures in another way. I don´t know. Here it crashes after the third or fourth selected curve.

  25. #25
    Tyler Durden Tyler Durden @TylerDurden

    FC may be crashing on sweeps with very tight curves. Sharp corner nodes may behave better... this is the case in Fusion.

     

    @acouchy, As you are aware, 123D was discontinued in 2016.

    Autodesk (parent of 123D) offers Fusion 360 for free, to personal users on Mac or Windows. It is pretty easy to learn for operations found in 123D.  

    I struggle a bit with FreeCad, but I have not taken the time to learn it.

Inkscape Inkscape.org Inkscape Forum Using Inkscape with Other Programs Problems using svg from Inkscape in CAD program to create 3D prints.