Author Topic: How to find out the real ParentID of an Object  (Read 4459 times)

Vmir

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
How to find out the real ParentID of an Object
« on: August 27, 2014, 05:43:33 pm »
Hello

Does anybody know how to find out the position of an Object relative to other Elements on a Diagram?

With other words: I need to find out the real ParentID of an Object inside of specific Diagram independent of the Traceability list or the “t_object” -Table.

As you can see on the picture the Funktion1 is located inside of Component1. But if you look on the Traceability list you will see: “owned by Component2”. It is so because I have changed the position of the Funktion1 in another Diagram which links to the same Objects.

So has anybody any idea how can I handle this?

« Last Edit: August 27, 2014, 05:44:28 pm by Vmir »

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: How to find out the real ParentID of an Object
« Reply #1 on: August 27, 2014, 06:36:19 pm »
I think you have to do it by yourself.

Do a database query on t_diagramobject and find an element whose bounds are contained by another element on the same diagram.

Vmir

  • EA Novice
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: How to find out the real ParentID of an Object
« Reply #2 on: August 28, 2014, 09:18:16 pm »
Hello stao

Thank you for reply.
I will do it this way..

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +396/-301
  • I'm no guru at all
    • View Profile
Re: How to find out the real ParentID of an Object
« Reply #3 on: August 28, 2014, 09:59:12 pm »
FWIW: Ownership should not be assigned by positioning an element in a diagram. Better you make it a real child element by placing it inside the parent within the browser.

q.