Book a Demo

Author Topic: Finding out EA Version (Lite vs Trial vs Reg)?  (Read 5229 times)

PV

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Finding out EA Version (Lite vs Trial vs Reg)?
« on: January 27, 2009, 11:07:01 pm »
Hi,

I am writing an add-in for EA (C#) and would like to set permissions based on the version of EA installed (ie. Lite, Trial and Registered versions).

Anyone have any ideas on this?

TIA..

~ PV

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Finding out EA Version (Lite vs Trial vs Reg)?
« Reply #1 on: January 27, 2009, 11:33:48 pm »
I don't know if the trial version identifies itself, at least as far as being different from the production version. It is designed to allow for real-world testing.

As far as the Lite version, I have no idea, but I suspect (without proof) that there is some way to figure it out. See below. That said, I don't think the Lite version will run an add-in [can anyone tell us if that assumption holds true?] so it might not be an issue.

As far as the edition of the production version, that is determined by the license key. EA is aware of which key version you use, so there should be some indicator. Whether this is exposed by the API I don't know. I did not find anything obvious when I checked the documentation.

Sorry I cannot be of more help.
« Last Edit: January 28, 2009, 10:38:55 pm by Midnight »
No, you can't have it!

Frank Horn

  • EA User
  • **
  • Posts: 535
  • Karma: +1/-0
    • View Profile
Re: Finding out EA Version (Lite vs Trial vs Reg)?
« Reply #2 on: January 28, 2009, 01:15:03 am »
Quote
I don't think the Lite version will run an add-in

Sparx say it does and identifies itself via Repository.EAEdition == -1

http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1227621018/0#0

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Finding out EA Version (Lite vs Trial vs Reg)?
« Reply #3 on: January 28, 2009, 05:33:26 am »
It is worth following the link Frank gives.

Note that the documentation - as of Build 834, compiled on date: 2008-12-02 - fails to mention either the repository attribute or the enumeration.

Bug report submitted...
No, you can't have it!

mrf

  • EA User
  • **
  • Posts: 311
  • Karma: +0/-0
    • View Profile
Re: Finding out EA Version (Lite vs Trial vs Reg)?
« Reply #4 on: January 28, 2009, 08:56:39 am »
Thanks David, I'll have a chat to Roy and see if we can get it sorted out.

[edit]Help updated, should be documented in 7.5[/edit]
« Last Edit: January 28, 2009, 10:28:01 am by mfraser »
Best Regards,

Michael

[email protected]
"It is more complicated than you think." - RFC 1925, Section 2.8

PV

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Finding out EA Version (Lite vs Trial vs Reg)?
« Reply #5 on: January 28, 2009, 05:43:34 pm »
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:
AttributeTypeNotes
EAEditionEAEditionTypesRead only: Returns the level of liscensed functionality available to the current repository.
           
The enumeration EAEditionTypes is defined as follows
 
EAEditionTypes Enum
The EAEditionTypes enumeration identifies the level of liscensed functionality available to the current repository.
 
For example:
 
Code: [Select]
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