Question & Answer
Question
How can you invoke ReporterPlus from the command line of IBM Rational Rhapsody?
Answer
Command-Line Argument:
/q OR /quiet :: Yes/No (Silent Mode=Yes or GUI Mode=No)
/m OR /model :: Rhapsody Model File Name
/t OR /template :: Rhapsody Template File Name
/fn OR /fileName :: Output File Name
/ft OR /fileType :: Output File Type (doc/html/ppt/txt)
/d OR /display :: Display the generated document
/s OR /scope :: Scope indicator string
Example:
%OMROOT%\reporterplus\reporter.exe /q=yes /m C:\temp\Project.rpy /t C:\temp\Project_rpy\MyTemplate.tpl /ft doc /fn C:\temp\MyReport.doc
You can also use variables:
set OMROOT=C:\Rhapsody6.1MR1
set MODELPATH=C:\Clients\mark\V61_RiC_TelematicsControlUnit
set MODELNAME=V61_RiC_TelematicsControlUnit
set TMPLPATH=C:\Clients\mark\V61_RiC_TelematicsControlUnit\V61_RiC_TelematicsControlUnit_rpy
set TMPLNAME=TelematicsControlUnitTemplate
set DOCTYPE=doc
set DOCNAME=SampleProject
set DOCPATH=C:\Clients\mark
%OMROOT%\reporterplus\reporter.exe /q=yes /m %MODELPATH%\%MODELNAME%.rpy /t %TMPLPATH \TMPLNAME%.tpl /ft %DOCTYPE% /fn %DOCPATH%\%DOCNAME%.%DOCTYPE%
Format of the scope package you specify is the full name of all the packages from its top most package contained by project separated by a colon (:).
Example: If in your model you have package a default under project and package default has a sub-package testpkg then in order to generate report on testpkg the scope should be specified as
/s default:testpkg:Package.
If there is another package NestedPkgPackage inside testpkg then scope for that package will be
/s default:testpkg:NestedPkgPackage.
Historical Number
10508
Product Synonym
Telelogic Rhapsody;Rational Rhapsody
Was this topic helpful?
Document Information
Modified date:
27 May 2022
UID
swg21323769