Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: Kezia on August 06, 2009, 01:39:51 pm

Title: Finding Dependencies in repository
Post by: Kezia on August 06, 2009, 01:39:51 pm
Hi all,

EA provides us capability to know which element is transformed from which element and we can see it from Hierarchy window (View -
Hierarchy) by clicking "Dependencies" relationship on the top of the window.
I try to visualise what I see in Hierarchy window:

- ElementA
  - transformed from
    + ElementB

I have tried to find where this information is saved in EA repository, but I still can't find it.
How can I programatically know that ElementA is transformed from ElementB? which properties should I read?


Cheers.

PS: Maybe my wording above is not good enough. I give screencapture that it could help more what I meant.
(http://i251.photobucket.com/albums/gg294/kezia_kristina/hierarchy3.jpg)
What I want to know is : How to find element that
<<XSDcomplexype>>EmployeeDeductionPlan
is transformed from, programatically.
Thanks.
Title: Re: Finding Dependencies in repository
Post by: Kezia on August 07, 2009, 04:39:13 pm
Nobody can help me?? EA support team??
Title: Re: Finding Dependencies in repository
Post by: gilles2 on August 08, 2009, 01:42:08 am
it must be a connector.
look at your element property Element.connectors.
There must be a connector with a specific type ....

Gilles
Title: Re: Finding Dependencies in repository
Post by: RoyC on August 10, 2009, 09:48:39 am
Nobody can help me?? EA support team??

Kezia

Just a gentle reminder that this is a user forum and, in theory, Sparx employees might not ever read your post. If you want Sparx Support to look at a problem or issue, please submit a direct support request using the Support    Report a Bug link at the bottom of any Sparx Systems website page (including this one).

WBR
Title: Re: Finding Dependencies in repository
Post by: Paolo F Cantoni on August 10, 2009, 04:29:07 pm
Quote
it must be a connector.
look at your element property Element.connectors.
There must be a connector with a specific type ....

Gilles
Not necessarily Gilles... Have a look in the PDATA entries and also the t_xref table.

EA uses a variety (of often inconsistent) mechanisms for establishing linkages between elements in the model.  For example, there is NO explicit nesting connector created when you nest an element under another in the browser.  That's handled by the ParentID field.  Indeed, if you connect two elements with a nesting connector, the ParentID field of the nestling is NOT updated nor is the browser changed...

I haven't looked at how transformations work so if someone finds out how, it would be useful for it to be posted here.

HTH,
Paolo