U++ framework
Do not panic. Ask here before giving up.

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 Go to next message
mdelfede is currently offline  mdelfede
Messages: 1310
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
Re: Added DXF class to write cad DXF files [message #37063 is a reply to message #37054] Mon, 13 August 2012 13:17 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
Some pictures... first the color widget :

index.php?t=getfile&id=3843&private=0
  • Attachment: dxf1.png
    (Size: 80.68KB, Downloaded 926 times)
Re: Added DXF class to write cad DXF files [message #37064 is a reply to message #37063] Mon, 13 August 2012 13:29 Go to previous messageGo to next message
mdelfede is currently offline  mdelfede
Messages: 1310
Registered: September 2007
Ultimate Contributor
And some generated files, opened with a cad application :

index.php?t=getfile&id=3845&private=0
  • Attachment: dxfx.png
    (Size: 38.38KB, Downloaded 939 times)

[Updated on: Mon, 13 August 2012 13:32]

Report message to a moderator

Re: Added DXF class to write cad DXF files [message #37075 is a reply to message #37064] Sat, 18 August 2012 15:05 Go to previous message
koldo is currently offline  koldo
Messages: 3459
Registered: August 2008
Senior Veteran
Thank you Massimo

More features for engineering applications Smile.


Best regards
IƱaki
Previous Topic: Rep Designer
Next Topic: Allegro5 - Allegro game programming library v5.x
Goto Forum:
  


Current Time: Fri May 29 23:56:39 GMT+2 2026

Total time taken to generate the page: 0.00492 seconds