Book a Demo

Author Topic: Book or guide for plugin/script developing  (Read 4964 times)

jepessen

  • EA User
  • **
  • Posts: 106
  • Karma: +1/-1
    • View Profile
Book or guide for plugin/script developing
« on: June 06, 2016, 07:46:11 am »
Hi.
I need to extend EA in order to create certain classes using a custom code generation.

I want to create some class with some stereotype that, with code generation, for every class generate source code for class itself and other linked classes.

For this it's best to use a script or a plugin? and I've did not find an extensive tutorial/guide/book in order to learn how to extend EA. Where can I find some useful resource?

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Book or guide for plugin/script developing
« Reply #1 on: June 06, 2016, 03:31:04 pm »
If you are after add-ins have a look at Geert Bellekens' tutorial how to write an add-in.

EA has some own macro language to generate code. I rather prefer the API to parse the model and spit out code at my wish.

q.

jepessen

  • EA User
  • **
  • Posts: 106
  • Karma: +1/-1
    • View Profile
Re: Book or guide for plugin/script developing
« Reply #2 on: June 07, 2016, 07:22:59 am »
Ok I'll study the macro language first to check if it suits my needs. Thanks.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Book or guide for plugin/script developing
« Reply #3 on: June 07, 2016, 04:30:00 pm »
The idea of EA is indeed that you use the code generation templates to generate the code.
That usually works for good enough for the simple stuff. For more advanced stuff you might need an add-in. IIRC you can even call you add-in from the code generation templates as well.

I've bundled some of the EA add-in tutorials on this page: https://bellekens.com/writing-ea-add-ins/

Geert

jepessen

  • EA User
  • **
  • Posts: 106
  • Karma: +1/-1
    • View Profile
Re: Book or guide for plugin/script developing
« Reply #4 on: June 08, 2016, 01:35:17 am »
Nice tutorials! thanks for the link.