There are many plugins and utilities that let you import code and export diagrams to/from Dia to other languages and formats.