Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: OpenIT Solutions on January 12, 2018, 11:36:36 pm

Title: Open the Relationship Matrix via script
Post 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.
Title: Re: Open the Relationship Matrix via script
Post by: VKN on January 15, 2018, 09:42:57 am
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
Title: Re: Open the Relationship Matrix via script
Post by: Arshad on January 17, 2018, 03:24:45 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.

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
Title: Re: Open the Relationship Matrix via script
Post by: OpenIT Solutions on January 17, 2018, 07:57:51 pm
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.
Title: Re: Open the Relationship Matrix via script
Post by: Geert Bellekens on January 17, 2018, 08:24:42 pm
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
Title: Re: Open the Relationship Matrix via script
Post by: qwerty on January 17, 2018, 08:25:20 pm
You're after Respository.CustomCommand. It might have some parameter, but I'm not aware of one for the RM.

q.
Title: Re: Open the Relationship Matrix via script
Post by: iBro_97 on February 28, 2023, 06:07:35 am
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