New Custom Code Generator Feature!

New Custom Code Generator Feature!

We want you to be able to create the code that you need from your UML models. That’s why we’re thrilled to introduce the first version of our custom code generator.

What is it?

If you follow us on Google+ or Twitter, you may have already heard about our new feature in GenMyModel and tried it out.

We’ve just released a beta version for custom code generators in GenMyModel. It allows you to use your own Acceleo template and generate code from your UML models.

For example, you can generate your own C#, Javascript, SQL, PHP, etc. code from any class diagram.

How does it work?

Custom code generators in GenMyModel use Acceleo. Acceleo is a template-oriented code generator based on MTL syntax. It takes models as inputs and produces any kind of code.

To use your own Acceleo template, here’s what you need:

* an Acceleo template, taking UML models as inputs (read more about Acceleo) and matching our packaging rules

* having this template hosted on Github

When configuring your template in GenMyModel, it is downloaded from Github and prepared so that you can generate code right from your diagrams:

1. Sign in to GenMyModel

2. Open the custom generator console and create a new generator

3. Paste the Github URL of your repository:  Example: https://github.com/aranega/customgen-template.git

4. Launch and get the archive with the generated file

Take a look at our quick start guide to learn more.

Have feedback?

We’d love for you to test it out and let us know what you think!

And of course, if you have any questions or need help, leave us a comment or send us a message.

Tweet about this on TwitterShare on FacebookShare on Google+Share on LinkedIn

About the author

Shannon Team

Shannon - GenMyModel Community Manager