Book a Demo

Author Topic: Macro execution  (Read 4855 times)

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Macro execution
« on: February 01, 2017, 02:14:46 am »
I founds some great macros that I really could use, like find & replace the sterotypes of a lot of my connections. But I could not find any description on how to execute the macros.

Any pointers? 

Thanks
Mats

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: Macro execution
« Reply #1 on: February 01, 2017, 09:11:36 am »
When you say "macro", do you mean "script"? If so, use the Scripting window: ribbon|Code|Scripting. There are examples that you can adapt.
The Sparx Team
[email protected]

Mats Gejnevall

  • EA User
  • **
  • Posts: 98
  • Karma: +1/-0
    • View Profile
Re: Macro execution
« Reply #2 on: February 01, 2017, 07:28:25 pm »
Hi
When I say macro I mean e.g. these
http://sparxsystems.com/enterprise_architect_user_guide/13.0/model_domains/connector_field_substitution_m.html

I really like to use them but don't understand how.

Thanks
Mats

Nabil

  • EA User
  • **
  • Posts: 149
  • Karma: +5/-2
    • View Profile
    • View My LinkedIn Profile Here
Re: Macro execution
« Reply #3 on: February 01, 2017, 08:43:46 pm »
This will be helpful in code generation. You can customize code generation for any language using Code Template Editior.

To get this option first open existing Code Template
Goto Code -> Configure -> Code Template Editor

Insert the macro in template and try generate code.

BR,
Nabil

Nabil