cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.

Identification of Demo version through Add-on code

kency
Enthusiast

Hello,

Is there any function that will let us know if the user is on demo version?

Thanks

Kency

1 REPLY 1
Ralph Wessel
Mentor

Something like this:

API_ProtectionInfo protectInfo;
auto err = ACAPI_Environment(APIEnv_ProtectionDataID, &protectInfo, 0);
return ((err != NoError) || ((protectInfo.protMode & APIPROT_TRIAL_MASK) != 0));

 

Ralph Wessel BArch
Software Engineer Speckle Systems