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


Results 1 to 7 of 7

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

  1. #1
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

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

    Last edited by deadlykitten; 10-31-2021 at 09:59 AM.
    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  2. #2
    Member awerby's Avatar
    Join Date
    Apr 2004
    Posts
    5731
    Downloads
    0
    Uploads
    0

    Default 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?

    [FONT=Verdana]Andrew Werby[/FONT]
    [URL="http://www.computersculpture.com/"]Website[/URL]


  3. #3
    Member deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

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

    not about who handles the file, but file structure, shared between different programs

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


  4. #4
    Flies Fast Superman's Avatar
    Join Date
    Dec 2008
    Location
    Antarctica
    Posts
    3109
    Downloads
    0
    Uploads
    0

    Default

    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
    Member routalot's Avatar
    Join Date
    Dec 2003
    Posts
    1213
    Downloads
    0
    Uploads
    0

    Default 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
    Member
    Join Date
    Jun 2011
    Location
    USA
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default 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 deadlykitten's Avatar
    Join Date
    Jun 2015
    Location
    Antarctica
    Posts
    4154
    Downloads
    0
    Uploads
    0

    Default 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

    we are merely at the start of " Internet of Things / Industrial Revolution 4.0 " era : a mix of AI, plastics, human estrangement, powerful non-state actors ...


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
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

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

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