548,600 active members*
1,416 visitors online*
Register for free
Login
IndustryArena Forum > CAD Software > Uncategorised CAD Discussion > please, how to write code that creates/reads dxf ?
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jun 2015
    Posts
    3531

    please, how to write code that creates/reads dxf ?

    hello please, how to write code that creates/reads a dxf format ? 2d, not fancy 3d / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  2. #2
    Member
    Join Date
    Apr 2004
    Posts
    5421

    Re: please, how to write code that creates/reads dxf ?

    How would that work? You just think of a shape, and this code produces a perfect drawing in DXF format? And you can also feed a DXF drawing into it, and it beams the shape into your brain?
    Andrew Werby
    Website

  3. #3
    Member
    Join Date
    Jun 2015
    Posts
    3531

    Re: please, how to write code that creates/reads dxf ?

    not about who handles the file, but file structure, shared between different programs
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

  4. #4
    Flies Fast
    Join Date
    Dec 2008
    Posts
    2859
    Quote Originally Posted by deadlykitten View Post
    not about who handles the file, but file structure, shared between different programs
    So.... you want to do what the CAD system does for you. What high end computer language experts charge big bucks for ?
    I'm not talking CNC Programming (G code type language etc), nor is it parametric/variable structured

    You do know what DXF actually means ?
    The actual DXF file is ascii coded( can be read/edited in a standard text editor ie notepad)
    Each CAD system would have their own version and limitations
    I assume they are written in computer language (ie Cobol C++ etc) then compiled & locked so that the general public can't stuff with their proprietary knowledge

    You want to know how to create a file to read/write DXF files. Take up a computer science degree, or simply buy a sear of a CAD system

  5. #5
    Registered
    Join Date
    Dec 2003
    Posts
    1031

    Re: please, how to write code that creates/reads dxf ?

    It does seem like a lot of effort when basic software like Librecad can read a .dxf and is a free download.You can,if you don't want to learn a CAM system,create an offset equal to you tool radius and write Gcode by hand to create a toolpath.Or you can find an online service that will do the job.Some of them used to be a free service and may still be.

  6. #6
    Registered
    Join Date
    Jun 2011
    Posts
    2

    Re: please, how to write code that creates/reads dxf ?

    Quote Originally Posted by deadlykitten View Post
    hello please, how to write code that creates/reads a dxf format ? 2d, not fancy 3d / kindly
    There's a library out there for it - but DXF is kinda painful to read/write. *sigh* I should work in that, again. My thinking is you parse all the vertices, then do some sort of convex hull algorithm to find inside / outside. After that, I guess it depends on your application.

    I feel like that's the real question - what are you trying to accomplish?

  7. #7
    Member
    Join Date
    Jun 2015
    Posts
    3531

    Re: please, how to write code that creates/reads dxf ?

    hy i solved it for simple geometry; there are many hints inside the g-code forum

    i converted countouring g-code into rough plunging, and i needed the dxf format to visualise what i was doing

    final goal is to create a 2d cad-cam / kindly
    Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg

Similar Threads

  1. Cad create contour arrow on dxf Mia?
    By countryguy in forum Dolphin CAD/CAM
    Replies: 2
    Last Post: 11-10-2015, 08:11 PM
  2. Create DXF for CNC machining / laser cutting
    By eurikain in forum Solidworks
    Replies: 1
    Last Post: 08-29-2015, 05:06 PM
  3. Can any of these drawings create a DXF. urgent! Already, thanks !!!!
    By Yves.Gabriels in forum General MetalWork Discussion
    Replies: 0
    Last Post: 04-27-2015, 11:50 AM
  4. Replies: 0
    Last Post: 09-20-2013, 02:44 AM
  5. create 3d dxf drawing
    By brockadeau in forum BobCad-Cam
    Replies: 0
    Last Post: 01-31-2008, 03:23 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •