NEW RELEASE! The 2022x Refresh2 Hot Fix 3 was released on February 28, 2025. For more information, see 2022x Refresh2 Hot Fix 3 Version News.

To integrate MagicDraw or other modeling tool into your application you should launch MagicDraw directly from your Java application. This would allow you to interact with MagicDraw or other modeling tool classes directly.

In order to do that you must:

  • Include lib/ folder and all of its subfolder into your project classpath
  • Import class com.nomagic.magicdraw.core.Application and call the appropriate start(...) method. (see Javadoc)
  • Make sure there is only one instance of the modeling tool running in the same JVM(multiple instances cannot be started in the same JVM) 


For launching the modeling tool straight from the command line, please refer to Running programs in batch mode and Specifying batch mode program classpath and required system properties.


Activity

All
Personal filters
All