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 Rhp2MDSilent.bat file do the following actions:
To configure the Rhp2MDSilent batch file - when installer has been used to install Publisher for Rhapsody :
SET RHP2MD_PATH=C:\Program Files\Publisher4Rhapsody\%PUB_VERSION%
SET RHP2MD_DATA_PATH=C:\ProgramData\Publisher4Rhapsody\%PUB_VERSION%\
SET RHP_PATH=D:\apps\IBM\Rhapsody\9.0.2\
SET RHP_PROJECT_PATH=<rhapsody_project_path>
start "" "%RHP_PATH%\rhapsody.exe" -cmd=open %RHP_PROJECT_PATH%
start /wait timeout 120
cd /d %RHP2MD_PATH%
publisher.exe -clean -headless -nosplash --launcher.suppressErrors -launch "%RHP2MD_DATA_PATH%\launch\Rhp2MDSilent.main.launch"
Taskkill /IM Rhapsody.exe /F
SET RHP_PROJECT_PATH=C:\ProgramData\IBM\Rational\Rhapsody\9.0.2\Samples\SystemSamples\SysMLHandset\SysMLHandset.rpy
start /wait timeout 120
To configure the Rhp2MDSilent batch file - when installer has not been used to install Publisher for Rhapsody :
SET RHP2MD_PATH=<current_publisher_path>
SET RHP_PATH=<rhapsody_path>
SET RHP_PROJECT_PATH=<rhapsody_project_path>
start "" "%RHP_PATH%\rhapsody.exe" -cmd=open %RHP_PROJECT_PATH%
start /wait timeout 120
"%RHP2MD_PATH%\publisher.exe" -headless -nosplash --launcher.suppressErrors -launch "%RHP2MD_PATH%\launch\Rhp2MDSilent.main.launch"
Taskkill /IM Rhapsody.exe /F
SET RHP2MD_PATH=C:\Program Files\Publisher4Rhapsody\%PUB_VERSION%
SET RHP_PATH=D:\apps\IBM\Rhapsody\9.0.2
SET RHP_PROJECT_PATH=C:\ProgramData\IBM\Rational\Rhapsody\9.0.2\Samples\SystemSamples\SysMLHandset\SysMLHandset.rpy
start /wait timeout 120
The MagicDraw output file can be configured by setting the rhp2md.md.path
option in the publisher.ini file.
-Drhp2md.md.path=C:\temp\mdexport.mdzip
If the -Drhp2md.md.path property is not set, the MagicDraw file will be created in the %USER%\.rhp2md\com.sodius.mdw.interop.rhp_md_sysml\mdzips
folder, where %USER% represents the User folder.
If the -Drhp2md.md.path property is set to an existing folder, the MagicDraw file will be created in the set folder.
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\Rhp2MDSilent.main.launch"
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\Rhp2MDSilent.main.launch"
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: