Macro Engine (previously called Script Engine) in MagicDraw allows you to create your own macro (script) by using BeanShell, Groovy, JavaScript Rhino, or Jython. With Macro Engine, you can control everything that is allowed in Open API, for example, transforming and manipulating models. Learn more about open API of MagicDraw or other Cameo Suite modeling tool (for example, Cameo Systems Modeler) in Developer Guide and find sample macros in <MagicDraw installation directory>/samples/product features/macros.
Macro Engine comes with Professional, Architect, and Enterprise Editions starting from MagicDraw version 16.6 and later.
Changing Javascript Nashorn to Javascript Rhino
The Macro Engine supports Javascript Rhino. If you have any macros written in Javascript Nashorn, which is deprecated, you can change it to Javascript Rhino.
To change to Javascript Rhino
- Click Tools > Macros > Change JS Nashorn to Rhino