I'll try to work with this on Windows, but when I try to convert the dia file to code using dia2code 0.8.3 on Debian 9.4, nothing is generated. When I try to export to code (pydia python and pydia c++) on dia 0.97+git (also on Debian 9.4) I get files but no generated content, except for a comment for c++. I tried using the latest version of dia2code (1.0.0) from sourceforge on Linux, I still couldn't output anything. I see that other people are able to output files so I don't know what I'm doing wrong. Are there objects that I am not or am supposed to place in my diagram or what?
Hmm, I wrote a plugin in python in Linux a few years back.
Details - I don't remember, but I found an object model
and a document describing it.
As I remember, it was just to write a script and place it in a
plugin directory, and it turned up in the menues