Author Topic: Automation Interface and Connectors  (Read 2309 times)

tagem0

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Automation Interface and Connectors
« on: October 25, 2009, 02:12:53 pm »
Hi,
I am new to EA and also to VBA.

I have thousand + requirements that I have imported to EA using csv import. Now I need to create the aggregate relationships for the requirements, in other words, I need to create the connectors. It will be time consuming to do it via the tool, hence why I want to do it programmatically.

Please can some one provide me with advice on how to achieve this? Also any sample codes will be very useful.

Thanks

Tagem

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13240
  • Karma: +553/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Automation Interface and Connectors
« Reply #1 on: October 26, 2009, 07:55:38 pm »
Tagem,

To get you started, there are some examples of addins on the website.

To create the relations between the elements you will probably need something along the lines of:

  • Loop requirements
  • if you found the correct one add a connector to via Element.Connectors.Add()
  • set the appropriate properties for the new connector: aggregationkind, clientID, supplierID,...
  • save the connector the to model: Connector.Update()
  • refresh the connectors collection (Element.Connectors.Refresh)
  • new Requirement

Geert

tagem0

  • EA Novice
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Automation Interface and Connectors
« Reply #2 on: November 10, 2009, 08:46:40 pm »
Thanks. Will try this.