Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Vmir 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?
(http://i59.tinypic.com/2d6rfd.png)
-
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.
-
Hello stao
Thank you for reply.
I will do it this way..
-
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.