Welcome to Our Community

Some features disabled for guests. Register Today.

OpenBuilds CAM mis-locating objects in DXF import

Discussion in 'CAM' started by dawhite, Apr 15, 2023.

  1. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    Hey everyone,
    I have a problem with cam mis-locating objects.
    steps to reproduce, draw objects in autocad with ucs rotated 180 on the y axis
    re rotate ucs to world, export dxf, import into openbuilds cam and objects are drawn with -x coords.

    in the example below, I drew the rectangle, located the ucs to the right of the rectangle, flipped ucs 180 on y and drew the right most slots & holes, mirrored them, then reset the ucs to world and exported to dxf.

    I'm not sure where I went wrong here.
    In trueview & autocad the objects are in the correct place. I'm not sure what I need to change to get cam to understand the objects are not in negative x space? autocaddwg.jpg trueview.jpg cam.png
     
  2. Peter Van Der Walt

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

    Joined:
    Mar 1, 2017
    Messages:
    15,224
    Likes Received:
    4,349
  3. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
  4. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    they already are polylines, HOWEVER, I have more to go on now as I get the error the objects arent aligned to the ucs...
    sigh...
     
  5. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
  6. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    upload_2023-4-15_14-19-53.png

    here i recreated the slot, BUT used world ucs.
     
  7. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    seems that flipping the ucs upsets cam
     
  8. Albert64

    Albert64 Well-Known
    Builder

    Joined:
    Jun 1, 2019
    Messages:
    32
    Likes Received:
    30
    Another possible cause - if one uses the mirror function in Autocad to duplicate objects - I have encountered the same results when opening the dxf file in other programs. Although it was not every object I mirrored, very random. I had this issue when exporting to CorelDraw which ported to my laser, and now when sending to my cam program, CamBam, for lead1515. I would reposition as necessary before moving forward.
     
  9. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    I'll test more, but I think I may have also rotated the ucs on the z plane by 1mm... I just noticed that in the listing that the extrude direction = -1 in Z...
     
  10. dawhite

    dawhite New
    Builder

    Joined:
    Aug 31, 2021
    Messages:
    20
    Likes Received:
    0
    Albert you sent me down the correct path!

    I think I figured it out. It is definitely the extrusion direction throwing a wrench in the works. I didn't change anything in the z direction.
    It appears that if you draw a polyline in autocad in any rotation around z other than 0/90 it adds this extrusion direction -1. I guess that causes openbuilds to flip it on z axis, and of course, if the z is flipped, the x is going to have to be negative. There was much googling with few helpful results in finding a fix. There might be a system variable but I couldn't find any help on it.

    For future reference, verify the extrusion direction before exporting your DXF!

    That's all well and good, but how to fix you ask?

    1. Draw without changing the ucs. Not always easy, waste time.
    2. rotate ucs, draw reference lines, return to world ucs and convert reference lines to polylines. Probably the easiest course of action.
    3. But what if the object is already drawn?
    You have to reset the ucs to world, explode the object, and convert it back to a polyline and automagically the extrusion direction disappears. I only did it for 1 of the 2 objects in the attached image for proof of concept.
    Anyhow, I hope this is useful!
    Questions? Comments? Concerns? (stolen from SMA)!


    upload_2023-4-23_19-21-0.png
     

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