hello please, how to write code that creates/reads a dxf format ? 2d, not fancy 3d / kindly
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
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?
not about who handles the file, but file structure, shared between different programs
Ladyhawke - My Delirium, https://www.youtube.com/watch?v=X_bFO1SNRZg
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
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.
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?
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