License delivery maintenance is planned for Saturday, July 26, between 12:00 and 20:00 CEST. During this time, you may experience outages or limited availability across our services, including BIMcloud SaaS, License Delivery, Graphisoft ID (for customer and company management), Graphisoft Store, and BIMx Web Viewer. More details…
2024-07-27
04:07 PM
- last edited on
2024-09-17
01:45 PM
by
Doreena Deng
Good day everyone!
I have a problem with returning the language value of running Archicad.
I want to do something related to localization and stuff but for that I want to know firstly what language is used by the user.
Do you know any way of returning the language of an active Archicad session? I guess the methods may differ for pre 27, 27 and beyond versions, right?
Thanks in advance!
Operating system used: Windows 10
Solved! Go to Solution.
2024-07-29 07:39 AM - edited 2024-07-29 08:19 PM
Try ACAPI_AddOnIdentification_Application()
API_ServerApplicationInfo AppInfo;
GS::UniString language = "";
err = ACAPI_AddOnIdentification_Application (&AppInfo);
if (err == NoError){
language = AppInfo.language;
}
Structural engineer, developer of free addon for sync GDL param and properties
2024-07-29
07:53 PM
- last edited on
2024-07-30
03:10 AM
by
Laszlo Nagy
In AC26 and older:
API_ServerApplicationInfo AppInfo;
GS::UniString language = "";
err = ACAPI_Environment (APIEnv_ApplicationID, &AppInfo);
if (err == NoError){
language = AppInfo.language;
}
Structural engineer, developer of free addon for sync GDL param and properties
2024-07-29 07:39 AM - edited 2024-07-29 08:19 PM
Try ACAPI_AddOnIdentification_Application()
API_ServerApplicationInfo AppInfo;
GS::UniString language = "";
err = ACAPI_AddOnIdentification_Application (&AppInfo);
if (err == NoError){
language = AppInfo.language;
}
Structural engineer, developer of free addon for sync GDL param and properties
2024-07-29 05:53 PM
Hi, thank you for the solution.
However, the issue is - when I tried this on my device, it returned me INT value (international -> English, I assume).
I wonder what is the list of language tags existing there in archicad. Do you know where I can find that list?
2024-07-29 06:32 PM
Also, do you know how would that be written for versions older than 27? Like for 26?
2024-07-29
07:53 PM
- last edited on
2024-07-30
03:10 AM
by
Laszlo Nagy
In AC26 and older:
API_ServerApplicationInfo AppInfo;
GS::UniString language = "";
err = ACAPI_Environment (APIEnv_ApplicationID, &AppInfo);
if (err == NoError){
language = AppInfo.language;
}
Structural engineer, developer of free addon for sync GDL param and properties