Skip to main content
Inspiring
January 8, 2024
Answered

C++ API: How to get the current Illustrator version

  • January 8, 2024
  • 1 reply
  • 431 views

For the logging and customer statistics  in a Plugin, I need to get the Version of Illustrator the Plugin is running with.

However, I could not find such a command in the C++-API.

Is there a way to get the Version?

This topic has been closed for replies.
Correct answer A. Patterson

Yes, there's a way and it's very easy fortunately. Use the AIRuntimeSuite (AIRuntime.h) like this:

 

const auto majorVersion = sAIRuntime->GetAppMajorVersion();
const auto minorVersion = sAIRuntime->GetAppMinorVersion();
const auto revisionVersion = sAIRuntime->GetAppRevisionVersion();

 

1 reply

A. Patterson
A. PattersonCorrect answer
Inspiring
January 8, 2024

Yes, there's a way and it's very easy fortunately. Use the AIRuntimeSuite (AIRuntime.h) like this:

 

const auto majorVersion = sAIRuntime->GetAppMajorVersion();
const auto minorVersion = sAIRuntime->GetAppMinorVersion();
const auto revisionVersion = sAIRuntime->GetAppRevisionVersion();

 

Inspiring
January 8, 2024

Thats what I was searching for, thanks.