In addition to generating code from templates, generate XMI representing the UML diagram. There are many tools that can parse this. See e.g. http://agx.me/ (doc source) and related packages.
That project implements UML profiles to generate various kinds of projects and Python structures (apps using the Pyramid web framework, content types for the Plone CMS, SQLAlchemy classes, etc.) from class diagrams.
If plantuml-code-generator generated UML in XMI format, then the output could be further processed using tools like AGX.
Here's one that converts XMI statecharts to C code: ufsm.
In addition to generating code from templates, generate XMI representing the UML diagram. There are many tools that can parse this. See e.g. http://agx.me/ (doc source) and related packages.
That project implements UML profiles to generate various kinds of projects and Python structures (apps using the Pyramid web framework, content types for the Plone CMS, SQLAlchemy classes, etc.) from class diagrams.
If
plantuml-code-generator
generated UML in XMI format, then the output could be further processed using tools like AGX.It would also allow sketching diagrams in PlantUML before importing them to more unwieldy full-featured tools.