Howdy...
EALite does indeed allow addins..I've tested this myself..this is why I have a problem.. cos I want to limit the functionality of my addin if the user is using EALite (or a trial version).
I logged a call with sparx support and here is the feedback I received:
Thank you for your email regarding the Enterprise Architect automation interface. I have noted that there is no corresponding documentation for the information you have requested in the Enterprise Architect help file. The following has been added, and should be of interest to you:
The Repository object defines the following attribute:
| Attribute | Type | Notes |
| EAEdition | EAEditionTypes | Read only: Returns the level of liscensed functionality available to the current repository. |
The enumeration EAEditionTypes is defined as follows
EAEditionTypes EnumThe EAEditionTypes enumeration identifies the level of liscensed functionality available to the current repository.
For example:
EAEditionTypes theEdition = theRepository.GetEAEdition();
if ( theEdition == EAEditionTypes.piDesktop )
...
else if ( theEdition == EAEditionTypes.piProfessional )
... The enumeration defines the following formal values:
-
piDesktop (= 0)
-
piProfessional-
piCorporate Additionally:
- A value of -1 indicates that Enterprise Architect is running in Lite mode.
- In versions 7.5 and above, the value piCorporate represents the Business Engineering, Systems Engineering and Ultimate editions.
- There is no seperate value for the trial edition, the
Repository.EAEdition attribute will contain the appropriate EAEditionTypes value for whichever edition the user has selected to trial.
later...
~ PV