Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content layer
id679375408
Content column
id679375410
Content block
id679375409

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 another modeling tool developed by No Magic Inc.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.

Content block
id679375407

Related pages