Sparx Systems Forum
Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: futuros on June 09, 2004, 05:28:10 am
-
Hi gurus,
i have a problem with package element. I need to verify, if some package has concrete stereotype, but package doesn't support stereotype in Automation Interface.
I tryed this
if (((EA.Element)Package.Packages.GetAt(idx)).Type=="AD-BusinessProfile") .....
-> becouse EA.Element has type as property, but it is also wrong ...
-
I'm sure I've answered this one before...
every EA.Package object has an Element property which, like any other EA.Element, can have a stereotype.
So, the stereotype is on p.Element, specifically its in p.Element.Stereotype.
HTH
Ian