Book a Demo

Author Topic: Create relationships between existing elements  (Read 4185 times)

motivatedgorilla

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Create relationships between existing elements
« on: January 30, 2014, 12:17:07 pm »
Hi,

I have over a thousand or more elements that I need to create relationships for. I have them in packages such as Package A, Package B, etc. A single element such as ABC may have a relationship e.g. association, dependency, etc with 1 or more elements. For example I have an element that has over 300 relationships.

Rather than mapping these manually, is there a way I can re-purpose the https://groups.google.com/forum/#!searchin/sparx-enterprise-architect-general/connectors/sparx-enterprise-architect-general/v-Jwt_yYFKY/uLXlx3aFmxMJ(Google Groups) to define relationships?
« Last Edit: January 30, 2014, 12:17:28 pm by motivatedgorilla »

Helmut Ortmann

  • EA User
  • **
  • Posts: 970
  • Karma: +42/-1
    • View Profile
Re: Create relationships between existing elements
« Reply #1 on: January 30, 2014, 06:05:32 pm »
Hello,

I woul use a Relationship Matrix to maintain a big number relationships.

If you have an algoritm you may also use Addin/Script.

Helmut
Coaching, Training, Workshop (Addins: hoTools, Search&Replace, LineStyle)

motivatedgorilla

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Create relationships between existing elements
« Reply #2 on: January 31, 2014, 04:54:57 am »
Thanks. I did look at the relationship matrix however would like to automate this as much as possible. I have no knowledge of scripting hence the request for help.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create relationships between existing elements
« Reply #3 on: January 31, 2014, 05:08:16 am »
If you want to automate things you will likely need to get involved with scripting. You'd either find a coding monkey do do it for you. Or you must do it by yourself.

q.
« Last Edit: January 31, 2014, 05:08:38 am by qwerty »

motivatedgorilla

  • EA User
  • **
  • Posts: 44
  • Karma: +0/-0
    • View Profile
Re: Create relationships between existing elements
« Reply #4 on: January 31, 2014, 05:20:12 am »
Is this not achievable via SQL e.g. UPDATE {tablename} SET ...

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create relationships between existing elements
« Reply #5 on: January 31, 2014, 09:24:23 am »
Well, yes. But bypassing the API is something you should only do if you know what you're doing. You may have a look in my Inside book.

q.

Graham_Moir

  • EA User
  • **
  • Posts: 749
  • Karma: +10/-15
    • View Profile
Re: Create relationships between existing elements
« Reply #6 on: February 05, 2014, 12:59:06 am »
Quote
If you want to automate things you will likely need to get involved with scripting. You'd either find a coding monkey do do it for you. Or you must do it by yourself.

"Coding monkey" ?   In my experience coding/programming/software development is a real skill, and an art as well as a science, so I doubt a monkey could ever do it very well !


qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Create relationships between existing elements
« Reply #7 on: February 05, 2014, 03:19:00 am »
I am a monkey. And I can code well :-)

q.