Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: stao 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
-
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
-
solved
thank you Geert