The configuration files are located in the publisher install path, under the folder "launch".
Note: If the installer (.exe) is used to install Publisher for Rhapsody, the folder "launch" is located in C:\ProgramData\Publisher4Rhapsody\%PUB_VERSION%\launch
,
otherwise, the folder "launch" is located in the same folder than the "publisher.exe" file.
Note: %PUB_VERSION%
corresponds to the Publisher Version, for example, 3.1.0
.
The provided MD2RhpSilent.bat file do the following actions:
To configure the MD2RhpSilent batch file - when installer has been used to install Publisher for Rhapsody :
SET MD2RHP_PATH=C:\Program Files\Publisher4Rhapsody\%PUB_VERSION%
SET MD2RHP_DATA_PATH=C:\ProgramData\Publisher4Rhapsody\%PUB_VERSION%\
SET MDZIP_PATH=%~1
cd %MD2RHP_PATH%
publisher.exe -headless -nosplash -launch "%MD2RHP_DATA_PATH%\launch\MD2RhpSilent.main.launch" -args[0] "%MDZIP_PATH%"
To configure the MD2RhpSilent batch file - when installer has not been used to install Publisher for Rhapsody :
SET MD2RHP_PATH=<current_publisher_path>
SET MDZIP_PATH=%~1
cd %MD2RHP_PATH%
publisher.exe -headless -nosplash -launch "%MD2RHP_PATH%\launch\MD2RhpSilent.main.launch" -args[0] "%MDZIP_PATH%"
SET MD2RHP_PATH=C:\Program Files\Publisher4Rhapsody\%PUB_VERSION%
Configuring a menu in Rhapsody helps exporting the current model in MagicDraw
C:\Program Files\Publisher4Rhapsody\3.1.0\publisher.exe
-headless -nosplash --launcher.suppressErrors -launch "<current_publisher_path>\launch\MD2RhpSilent.main.launch" -args[0] "<magicdraw_input_file>"
In these arguments, replace <current_publisher_path> by the Publisher path, for example:
-headless -nosplash --launcher.suppressErrors -launch "C:\ProgramData\Publisher4Rhapsody\3.1.0\launch\MD2RhpSilent.main.launch" -args[0] "<magicdraw_input_file>"
In these arguments, replace <magicdraw_input_file> by the MagicDraw model file path, for example:
-headless -nosplash --launcher.suppressErrors -launch "C:\ProgramData\Publisher4Rhapsody\3.1.0\launch\MD2RhpSilent.main.launch" -args[0] "C:\Documents\MagicDrawModel.mdzip"
You will now find the publishing shortcut in the Tools menu.
To test the modifications you can run the launch configuration from the publisher. Follow these steps: