Book a Demo

Author Topic: connector between packages  (Read 4558 times)

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
connector between packages
« on: October 29, 2010, 06:50:54 pm »
Hi everyone
I have a little problem i cant solve.
I have a diagram with 2 packages on it.
One package imports the other one.
Now what i want to do:
I have the first package. I want to check through automation if the package has any "import" connectors.
If it is so i want the package where the connector leads to.
There my problem starts.
SupplierID and ClientID only are elementIDs.
I can get the "element" which has the same name as my wanted "package" but has no elements in it.
what i want is the package where the import connector leads to.
Dont know how i can get it.

Thanks

stao

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13510
  • Karma: +573/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: connector between packages
« Reply #1 on: October 29, 2010, 07:29:59 pm »
Stao,

Each package has an element as well: Package.Element (except for the root packages).
On one such element the pdata1 contains the package id.
so Element.MiscData(0) should give you the package ID.

Geert

stao

  • EA User
  • **
  • Posts: 137
  • Karma: +0/-0
    • View Profile
Re: connector between packages
« Reply #2 on: October 29, 2010, 08:00:35 pm »
solved

thank you Geert