Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: laney on June 08, 2023, 03:18:34 am

Title: Access to fully qualified stereotype for Packages
Post by: laney on June 08, 2023, 03:18:34 am
Hi,

I'm accessing EA via COM Automation Interface from a Python script.

When using EA's UI - almost any item visible in "Project Browser" can be given a stereotype, including "Packages", and that stereotype is shown in a full form (fully qualified name) in the "Properties" view.

The problem I have is that I don't know how to access that full stereotype name (fully qualified name) for "Packages". There's only "StereotypeEx" property available via COM. All other elements - apart from "StereotypeEx" have also "FQStereotype" (which has the full, expected value).

Any ideas?
Title: Re: Access to fully qualified stereotype for Packages
Post by: Geert Bellekens on June 08, 2023, 04:04:19 am
EA.Package.Element.FQStereotype

Geert
Title: Re: Access to fully qualified stereotype for Packages
Post by: qwerty on June 08, 2023, 06:49:21 am
... have also "FQStereotype" (which has the full, expected value).
so what is your question?

q.
Title: Re: Access to fully qualified stereotype for Packages
Post by: laney on June 10, 2023, 06:34:23 am
Thanks a lot Geert!
Your suggestion worked beautifully:

Quote
EA.Package.Element.FQStereotype