Dia2Code is a small utility used to generate code from a Dia diagram.

Dia is a program to make diagrams. If you didn't know it, you might consider checking its homepage first.

Dia2Code basically reads a Dia diagram file that contains an UML class diagram and creates files in the language of choice that contain the bare bones of the classes represented in the diagram.

For information on the latest version see the Changelog.

Since version 0.7, the core functionality of Dia2Code is complete. Apart from minor improvements and bug fixes, the current focus of development is on the dia2code-c++ rewrite (see below).

If you want to report a bug, request a feature, submit a patch or simply click around, please visit the Dia2Code project page.

Dia2Code is licensed under the GNU General Public License (GPL). For details, please visit the GNU Project Homepage.


dia2code+ is a complete rewrite of dia2code in C++ contributed by Vincent Le Garrec.

At present (Jan 2017), dia2code+ only implements following target languages (-t):
cpp, cpp11, csharp, java, php.
The following dia2code target languages are not yet implemented in dia2code+:
ada, as3, c, idl, python, ruby, shp, sql.

A development release of dia2code+ is available and we encourage you to try it out.

In order to avoid version overlap with traditional dia2code, the version numbering for dia2code+ starts at 1.0.0.

The 0.8.x and 0.9.x versions are reserved for traditional dia2code. However, work is now focusing on dia2code+.

dia2code+ shall eventually replace dia2code.

This page is kindly hosted by: SourceForge.net Logo