Macro Engine (previously called Script Engine) 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 in Developer Guide and find sample macros in <modeling tool installation directory>/samples/product features/macros.

Macro Engine comes with Professional, Architect, and Enterprise Editions starting from 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 > MacrosChange JS Nashorn to Rhino