Welcome to Our Community

Some features disabled for guests. Register Today.

Importing DXF

Discussion in 'General Talk' started by Brian Pierson, Sep 14, 2022.

  1. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    While importing a DXF into the G-code generator, it does not import the complete file. Please see the photo. It drops a small segment of the circles out of the files and will not allow an offset operation. Have you seen this before, and what can I do to prevent this?
     

    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,051
    Likes Received:
    4,313
  3. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    Thank you! I don't remember seeing that as an option with Solidworks, but I'll look for it.
     
  4. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Sometimes one may need an intermediate CAD to clean up some of the more advanced CADs outputs.

    Here's one example, of how to use QCAD (free) to convert everything to Polylines: Problems with importing DXF into OBcam
     
  5. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    I downloaded QCAD and ran the steps as you described them, and it did close the gaps in the circles (thank you!) but please have a look at the photo. It will import properly, but once I move it to position and try to scale it, I get the image you see in the photo.
     

    Attached Files:

  6. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Please provide a Workspace Export (File > Save Workspace (Export .obc file) ) of the file as loaded, before moving it.
    May need to zip the OBC file to attach to forum post if it complains about the file type :)
     
  7. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    Here is the dxf as imported
     

    Attached Files:

  8. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    I am able to Move it (used Transform > Position > and set Left/Bottom to 0). I also tried moving it using the Move tool and the Mouse

    Then I selected Transform again, scale, and made it larger (width=200) - worked fine.

    Any specific steps / order of steps you used? Any chance you had loaded the non-polyline version of the file?
     
  9. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    upload_2022-9-16_19-59-27.png
     
  10. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    The hell am I doing wrong :duh: Are there any settings I may have inadvertently selected within the Openbuilds generator that might give me weird results?
     
  11. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    No, nothing I can think off. If its a non -polyline or open vector the first coordinate can sometimes jump around that looks like your screenshot, that is an old bug - but usually relates to a file being loading with a spline/arc instead of a polyline
     
  12. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    As an aside - you can make sure to export from CAD at the right origin and size to avoid having to do that in CAM.
     
  13. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    (used Transform > Position > and set Left/Bottom to 0) <-------- I am not able to find these operations
     
  14. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    upload_2022-9-16_22-46-12.png

    Green square over the ruler icon on the left toolbar = transform tools
    Click the entity to transform
    Use the scale/position tabs to move, scale, etc the entity

    More reliable than the Move tool (blue square)
     
  15. Giarc

    Giarc OpenBuilds Team
    Staff Member Moderator Builder Resident Builder

    Joined:
    Jan 24, 2015
    Messages:
    3,016
    Likes Received:
    1,682
    I just messed around with it, too and it worked or me. I resized it randomly to check that before positioning.
    upload_2022-9-17_9-32-45.png
     
    Peter Van Der Walt likes this.
  16. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    I have tried so many ways, but cannot get circles to close when I import the DXF. The attached photos show what the sketch looks like in Solidworks, then how it looks in the workspace. It only seems to dislike circles.
     

    Attached Files:

  17. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Make sure to convert all entities to Polylines: See docs:software:file-errors [OpenBuilds Documentation]
     
  18. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    Yep...I used QCAD to convert as per your earlier advice, and it closes the circle but then I get this (just as before)
     

    Attached Files:

  19. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Include the DXF please
     
  20. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    Its one of many "tests" I was trying. It's not the final part, but it does illustrate the issue.
     

    Attached Files:

  21. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Thanks, yes this one does have a problem - logged a ticket on the OpenBuilds CAM github repo to have it looked at

    As a sidenote, the hexagon and rectangle are Lines not Polylines - so also won't work well.

    In the meantime, instead of Moving in CAM - move it in CAD to the correct origin, before exporting to DXF.
     
  22. Brian Pierson

    Builder

    Joined:
    Dec 5, 2019
    Messages:
    22
    Likes Received:
    1
    Thank you for your help!
     
  23. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Moves with the Transform tool also works by the way. See post #14 above. Just mouse moves that has a bug it seems

    For now, we've removed the Move button from the toolbar - in order to force users to use the much better Transform tools instead
     
  24. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    For now, we had a couple users complain about the removal of the Move tool (because it works great with their files). I am putting it back, and hoping you personally will avoid using it and rather use the Transform tool instead (which works with your sample files), or move your files in CAD (not CAM), or also consider other CAM options that may suit your workflow better. See docs:software:overview [OpenBuilds Documentation]
     
  25. Ryszard Smolen

    Builder

    Joined:
    Jan 4, 2023
    Messages:
    11
    Likes Received:
    1
    Could take a look at the attached "celebration" file that was modified using QCAD. I am also attaching original file. I am having a problem with open vector. Thank you...Richard
     

    Attached Files:

  26. Ryszard Smolen

    Builder

    Joined:
    Jan 4, 2023
    Messages:
    11
    Likes Received:
    1
    Peter, thank you for:" upload_2023-1-16_17-47-24.png
    that was the solution
     

    Attached Files:

  27. Ryszard Smolen

    Builder

    Joined:
    Jan 4, 2023
    Messages:
    11
    Likes Received:
    1
    I am using Qcad. when circle is converter to poly, it gets a certain number of segments. How to increase number of segment. I see that objects within the openbuild CAM can control have number of segments. Can import DXFs be modified within openbuild CAM or someone knows how to change setting in Qcad?
     
  28. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
  29. Ryszard Smolen

    Builder

    Joined:
    Jan 4, 2023
    Messages:
    11
    Likes Received:
    1
    steps work within Qcad. went to max360 segmetns. When imported to openbuild geometry goes to default number of segments. let me know if anyone was lucky.
     
  30. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,051
    Likes Received:
    4,313
    Post files for analysis. Sure you exported the segments as Polyline?
     

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