Home > RaQuest > About interfaces with external command and external program.
About interfaces with external command and external program.
Create 02-Sep-2009
Last Update 16-Nove-2009
Below are for Build 077 or later.
Call of external command
Configuring a setting file enables to set a menu of external tool at RaQuest's Main menu | Tool.
Setting
Create an arbitrarily name folder under the installation folder, and then create an ini extension file under it. Format of the ini file is as follows.
MENUNAME=menu name
EXECFILE=command full path
ARGUMENT=command argument
EXECDIR=command execution directory
SHORTCUT=displaying order (shortcut key))
DESKTOP=Action with Enterprise Architect desktop edition
SHOWWINDOW=Window's show status
ARGUMENT
$f The file path/connection string of the current project
$k type of selected element
$g GUID of selected element
$e EAID of selected element
$p GUID of project
$%id% etc. attribute value of requirement when selected element is requirement
($%(user-defined attribute name)% etc.)
Double quote when needed to match the number of attributes.
EXECDIR can be omitted. When omitted, directory is set to an ini file's folder.
SHORTCUT is from 1 to 10. Omit-able.
Shortcut keys correspond with CTRL+F1 to CTRL+F10.
DESKTOP can be omitted. CLOSE/NG/OK are the choices.
CLOSE is the project once, and re-open it after execution with Enterprise Architect Desktop edition.(default)
NG is un-executable with Enterprise Architect Desktop edition.
OK is executable with Enterprise Architect Desktop edition.
SHOWWINDOW can be omitted. When omitted, show normal.
0 is hidden window.
1 is show normal window.
Example:
MENUNAME=menu name
EXECFILE=C:\test.bat
ARGUMENT="$f" $g
EXECDIR=C:\
SHORTCUT=1
DESKTOP=CLOSE
SHOWWINDOW=1
In the above configuration:
Display "menu name" in menu.
Executable file is C:\test.bat
Argument is currently opening project file($f), and selected element GUID($g).
Execution directory is C:\.
Shortcut key is CTRL+F1.
Action with EA desktop edition closes the project once, and re-open it after execution.
Show normal window.
Selection/update of requirements from external program
Use library (RaQuestMessageLib.dll in the installation directory)
Library function
SetTargetProjectGUID:Specify the project, targeted to be sent a message.
FindTargetInstance:Find a currently opening specified target project from RaQuests
UpdateRequirement:Send updating messages of requirement
SelectRequirement:Send selection messages of requirement
CloseMessage:end send messages
Sample program
sample of call external command
Create a folder under RaQuest's installation directory, and then put the extracted files from the downloaded zip file.
Sample of external command (No messages from the external program)
Sample of external command, which is called from RaQuest to change the data. In this sample, when "review required" attributes of requirements is True, UML Items which is combined with requirements by realization connection is bookmarked.
(A sample which reflects status of requirements to UML Items)
Sample of external command (Messages from the external program)
Sample of external command, which is called from RaQuest to change the data, and then send messages to RaQuest. In this sample, "review required" attributes which combined with bookmarked UML Items by realization connection is True, and send a message to update the reviewed requirements' display.
(Sample which reflects status of UML Items to requirements.)