Modeling tools allow you to access open API using the Jython scripting language.

Jython is an implementation of the high-level, dynamic, and object-oriented language Python which is seamlessly integrated with the Java platform.

Using Jython you may access all java API and MagicDraw (or other modeling tool developed by us) open API. This allows to avoid compilation and to get the same results without a java code. Using scripting you may do everything that you can achieve using a java plugin, and even more: you may change your code without recompiling and restarting an application.

More information about Jython you can find at http://www.jython.org. Information about the python language you can find at http://www.python.org.

On every startup, program checks for scripts in plugins/com.nomagic.magicdraw.jpython/scripts/. If there are subdirectories, each of them are scanned for the script.xml file. This file provides information about the script in this directory. A file is similar to a plugin descriptor described in Plugin descriptor. If script.xml contains valid information, the script file specified in script.xml is executed. The script file should contain a valid Jython 2.7.2 script.

Related pages