Sparx Systems Forum

Enterprise Architect => Automation Interface, Add-Ins and Tools => Topic started by: M1TO on June 02, 2026, 09:28:09 pm

Title: Reading EA Version
Post by: M1TO on June 02, 2026, 09:28:09 pm
Is there a way to know if the 32 bit or the 64 bit version of EA is used? With Repository.LibraryVersion() one gets only the version of EA, but not if it's x64 or x86.
Title: Re: Reading EA Version
Post by: Geert Bellekens on June 02, 2026, 09:48:37 pm
I don't think there's a direct property in the API you can query.

So you'll have to do it with a workaround. And that workaround will be different depending on the langueage you are using.

On Stackoverflow I found something like this https://stackoverflow.com/questions/7759715/check-if-my-program-is-running-in-32-bit-mode-on-a-64bit-machine-if-running-in#:~:text=You%20can%20use%20IntPtr.,if%20running%20as%2064%20bit. (https://stackoverflow.com/questions/7759715/check-if-my-program-is-running-in-32-bit-mode-on-a-64bit-machine-if-running-in#:~:text=You%20can%20use%20IntPtr.,if%20running%20as%2064%20bit.)
Code: [Select]
private static bool Is64BitConfiguration()
{
     return System.IntPtr.Size == 8;
}

Geert