Home » Developing U++ » UppHub » Added DXF class to write cad DXF files
Added DXF class to write cad DXF files [message #37054] |
Sat, 11 August 2012 17:45  |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Hi,
I added a starting DXF class able to write (NOT to read...) AutoCad (and others) DXF drawing files.
Still incomplete but quite usable and easily extensible (I'm using it in my TimberStruct application); by now it supports following objects :
Line
Circle
LwPolyline
Block references
It supports also creation of Block entities.
I added also a sort of coordinate system handling that allow to change references in a way similar to Painter and others.
The file format follows recent Autocad, so it allows also recent objects inside (like LwPolyline).
There is also a DXF color chooser widget + dialog for color selection.
Ah, just 2d, 3d objects are in encrypted form inside DXF files, so almost impossible to create or manage, and imho it's not worth the effort to have simple 3d support for objects like line an others.
No docs nor demo, but well commented code... When I've a bit more time I'll add a demo application.
Ciao
Max
|
|
|
Goto Forum:
Current Time: Sun Apr 27 22:40:13 CEST 2025
Total time taken to generate the page: 0.03224 seconds
|