This section explains how to update a used project using a command line. 


To update a used project from the command-line interface


  1. Move the properties file to the plugin director<modeling tool installation directory>/plugins/com.nomagic.magicdraw.twcusageupdater.
  2. Open the command-line interface.
  3. Go to the <modeling tool installation directory>/plugins/com.nomagic.magicdraw.twcusageupdater directory containing the executable file for the used project update.

Executable file

Depending on your operating system, the executable file is the .sh or .bat file.


To update a used project using a single properties file


Type the following command in the command line:

  • On Windows:
update.bat -properties sample.properties
  • On OS X or Linux:
 ./update.sh -properties sample.properties


To update a used project using multiple properties files


Type the following command in the command line:

  • On Windows:
update.bat -properties first.properties second.properties third.properties
  • On OS X or Linux:
./update.sh -properties first.properties second.properties third.properties

Project configuration directory

If you use a non-default configuration directory (e.g. change it by using special properties in the <modeling tool>.properties file), you need to update the plugin as well. Otherwise, the plugin searches for settings in the default directory instead of the configuration directory that is actually in use. This results in unexpected failures.

To avoid failures, add identical properties for changing the configuration directory in the update script:

  • On Windows:
  1. Go to the update.bat file.
  2. Change the command line at the end of the file to the following:

"%fullPath%/bin/java" -Xmx4000M -Xss1024K -Dlocalconfig.location=userhome -cp %CLASS_PATH% %*

  • On OS X or Linux:
  1. Go to the update.sh file.
  2. Change the VM_OPTIONS line to the following:

VM_OPTIONS="-Xmx1900M -Xss1024K -Dlocalconfig.location=userhome"

This example is applicable if the modeling tool uses the property "-Dlocalconfig.location=userhome".