Welcome to Our Community

Some features disabled for guests. Register Today.

Closed area in an onshape sketch results in open vectors, qcad fix attempts result in 'color' error

Discussion in 'CNC Mills/Routers' started by shookti, Apr 28, 2025.

  1. shookti

    shookti New
    Builder

    Joined:
    Jan 17, 2025
    Messages:
    4
    Likes Received:
    1
    I am trying to do the CAM for the following onshape sketch using OpenBuilds CAM:
    upload_2025-4-28_23-22-37.png


    I export the sketch as a .dxf file with the following settings:
    upload_2025-4-28_23-23-59.png

    I open the .dxf file in OpenBuilds CAM and select the interior hexagon (the error is thrown by both hexagons), when I try to create a tool path for this, it says that the selected toolpath contains open vectors:
    upload_2025-4-28_23-27-31.png

    According to my design in onshape, these shapes are definitely closed. As shown by the yellow highlight in the first picture, selections of areas in sketches are only yellow if the area is closed in onshape.

    I tried googling around and tried to fix the problem by opening the .dxf in qcad and selecting all the geometry > draw > polyline > polyline from selection. Then I saved the file as a .dxf:
    upload_2025-4-28_23-33-14.png

    While I'm saving the file in qcad, this warning pops up:
    upload_2025-4-28_23-35-32.png

    After clicking 'yes' (no file is saved if I click on 'no') and saving the file, I open it in OpenBuilds CAM which fails to open the file with this error message at the bottom of the window:
    upload_2025-4-28_23-36-39.png

    I have tried to 'assign' colours in qcad, and from whatever I can glean from the info displayed on screen there's no issue of 'unassigned'/'undefined' colours in the .dxf. I tried my best to reproduce the steps I took in qcad in librecad, and that too results in OpenBuilds CAM throwing the same error.

    Any guidance would be greatly appreciated - what's the easiest way to fix this issue of open vectors?

    Complete CAM noob here, might be a little lost on some of the terminology used in this forum... apologies in advance.

    Thanks!
    Shookti
     

    Attached Files:

  2. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,641
    Likes Received:
    4,467
  3. shookti

    shookti New
    Builder

    Joined:
    Jan 17, 2025
    Messages:
    4
    Likes Received:
    1
    Thanks for responding!

    Here are the DXFs:
    before (onshape): hex.dxf
    after (qcad): hexq.dxf

    Not sure how I can check if whatever I have done has worked and closed all the vectors within qcad.
     

    Attached Files:

    #3 shookti, Apr 29, 2025
    Last edited: Apr 29, 2025
  4. A.J.W.E. Klappe

    A.J.W.E. Klappe Well-Known
    Builder

    Joined:
    Aug 13, 2017
    Messages:
    139
    Likes Received:
    95

    Hello, I took the liberty of looking at your DXF file and I found all loose lines that I connected again in Inkscape. Could you look at this in Openbuilds cam to see if it opens properly?

    Kind regards
    Bert Klappe
     
  5. shookti

    shookti New
    Builder

    Joined:
    Jan 17, 2025
    Messages:
    4
    Likes Received:
    1
    Hi Bert, thanks for taking the time. I can't find any attached files in your post. Can you please check if you've attached it?
     
  6. shookti

    shookti New
    Builder

    Joined:
    Jan 17, 2025
    Messages:
    4
    Likes Received:
    1
    Hi, I've managed to fix my problem.

    Solution: Export R14 DXF from Onshape > Open it in Inkscape > Select all entities by pressing Ctrl + A > Ungroup all selections by repeatedly pressing Ctrl + Shift + G > Select the Node Tool (with all entities still selected) > Press Ctrl + A again to select all nodes > Click on 'Join selected nodes' > Save the file as (Ctrl + Shift + S) an R14 DXF
     
    Peter Van Der Walt likes this.
  7. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,641
    Likes Received:
    4,467

    OpenBuilds CAM is not wrong, those aren't joined up closed shapes

    upload_2025-4-29_14-14-47.png

    You can see its all seperate LINE segments, they aren't joined together into a closed path/polyline at all

    Same for the Circles

    upload_2025-4-29_14-16-45.png

    You can see, they are still of type Circle not Polyline...

    Got to join (weld) those loose segments into Polylines, and convert all non-polyline entities to polylines

    Problems with importing DXF into OBcam (Trial of the Pro version of QCAD can do it automatically)
     
  8. Peter Van Der Walt

    Peter Van Der Walt OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Mar 1, 2017
    Messages:
    15,641
    Likes Received:
    4,467
    Good job!
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice