Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: OpenIT Solutions on January 12, 2018, 11:36:36 pm
-
Hi,
Is there a way to open the Relationship Matrix via a script ? Ideally also set the 'profile' and/or source and targets ?
Regards,
Jon.
-
Look for Matrix Specification Artifact in the below link. Then maybe you can apply a double click to open the Matrix with the predefined profile.
http://www.sparxsystems.com/enterprise_architect_user_guide/13.5/modeling_tools/artifacttbp.html
-
Hi,
Is there a way to open the Relationship Matrix via a script ? Ideally also set the 'profile' and/or source and targets ?
Regards,
Jon.
Hi OpenIT Solutions
There isn't any direct API calls to open the relationship matrix via scripts.
You can create a Matrix profile (as suggested VKN ) using an API and it might do the trick ;).
After you create the Profile definition, each time you double-click on the Artifact element the Relationship Matrix displays with the Profile applied.
Please refer http://sparxsystems.com/enterprise_architect_user_guide/13.5/model_navigation/elementrelationshipmatrix.html (http://sparxsystems.com/enterprise_architect_user_guide/13.5/model_navigation/elementrelationshipmatrix.html)for more details
-
Hi,
What I'm really after is a way via a script. I think I remember sometime ago reading that there were some undocumented features that could be used to simulate a menu/ribbon click via script. I can't find the thread on the group however. Ring any bells with anyone ?
Regards,
Jon.
-
You can, but prepare to get dirty -> simulating mouseclicks and keypresses :o
One the examples I found here: http://www.sparxsystems.com/forums/smf/index.php/topic,4363.msg120072.html#msg120072 (http://www.sparxsystems.com/forums/smf/index.php/topic,4363.msg120072.html#msg120072)
Geert
-
You're after Respository.CustomCommand. It might have some parameter, but I'm not aware of one for the RM.
q.
-
Hello,
have you been able to solve your problem? Are there any new commands, to trigger an export of a relationship matrix with a pre defined matrix profile.
I'm facing the exact same task.
thank you and regards,
Ibro