Author Topic: Open the Relationship Matrix via script  (Read 1095 times)

OpenIT Solutions

  • EA User
  • **
  • Posts: 464
  • Karma: +4/-0
    • View Profile
Open the Relationship Matrix via script
« 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.

VKN

  • EA User
  • **
  • Posts: 177
  • Karma: +8/-1
    • View Profile
Re: Open the Relationship Matrix via script
« Reply #1 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

Arshad

  • EA User
  • **
  • Posts: 100
  • Karma: +4/-1
    • View Profile
Re: Open the Relationship Matrix via script
« Reply #2 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.htmlfor more details

Sparx Systems India - Services
Profile | Training PlansConsulting

OpenIT Solutions

  • EA User
  • **
  • Posts: 464
  • Karma: +4/-0
    • View Profile
Re: Open the Relationship Matrix via script
« Reply #3 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.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 8088
  • Karma: +186/-22
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Open the Relationship Matrix via script
« Reply #4 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

Geert

qwerty

  • EA Guru
  • *****
  • Posts: 9301
  • Karma: +143/-135
  • I'm no guru at all
    • View Profile
Re: Open the Relationship Matrix via script
« Reply #5 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.