Functions providing information about Archicad licensing.
More...
|
typedef GSErrCode __ACENV_CALL | APILicenseBorrowStatusChangeHandlerProc(API_LicenseBorrowStatusTypeID licenseBorrowStatus) |
| User supplied callback procedure for handling license borrowing status changes.
|
|
using | API_SSALevel = UInt32 |
| This is a numeric value representing an SSA subscription level. Use the named constants from the API_SSALevels namespace: NoSSA, SSA, Forward.
|
|
Functions providing information about Archicad licensing.
◆ API_SSALevel
This is a numeric value representing an SSA subscription level. Use the named constants from the API_SSALevels namespace: NoSSA, SSA, Forward.
- Since
- Archicad 26
◆ APILicenseBorrowStatusChangeHandlerProc
typedef GSErrCode __ACENV_CALL APILicenseBorrowStatusChangeHandlerProc(API_LicenseBorrowStatusTypeID licenseBorrowStatus) |
User supplied callback procedure for handling license borrowing status changes.
- Parameters
-
licenseBorrowStatus | [out] The status of license borrowing, can be API_LicenseBorrowed or API_LicenseReturned . |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_Licensing_CatchLicenseBorrowStatusChange()
Catches notifications on license borrowing status changes.
- Parameters
-
handlerProc | [in] The callback function which receives the notifications. |
- Returns
- NoError - The function has completed with success.
◆ ACAPI_Licensing_GetBoxMask()
UInt16 __ACENV_CALL ACAPI_Licensing_GetBoxMask |
( |
| ) |
|
Retrieves the box mask of the current license.
- Since
- Archicad 26
- Returns
◆ ACAPI_Licensing_GetConfigurationNumber()
GS::UniString __ACENV_CALL ACAPI_Licensing_GetConfigurationNumber |
( |
| ) |
|
Retrieves the configuration number of the current license.
- Since
- Archicad 26
- Returns
- The current license's configuration number (also known as the container code).
◆ ACAPI_Licensing_GetExpirationTime()
GSTime __ACENV_CALL ACAPI_Licensing_GetExpirationTime |
( |
| ) |
|
Retrieves the expiration time of the current license (if any).
- Since
- Archicad 26
- Returns
- GSTime - The expiration time of the current license.
◆ ACAPI_Licensing_GetNumberOfLicenses()
UInt32 __ACENV_CALL ACAPI_Licensing_GetNumberOfLicenses |
( |
| ) |
|
Retrieves the number of current licenses.
- Since
- Archicad 26
- Returns
- The number of licenses.
◆ ACAPI_Licensing_GetPartnerId()
GS::UniString __ACENV_CALL ACAPI_Licensing_GetPartnerId |
( |
| ) |
|
When Archicad runs on an SSA license, this string contains the internal identifier of the reseller.
- Since
- Archicad 26
- Returns
◆ ACAPI_Licensing_GetProtectionMode()
UInt32 __ACENV_CALL ACAPI_Licensing_GetProtectionMode |
( |
| ) |
|
Retrieves information about the protection mode.
- Since
- Archicad 26
- Returns
- Example
bool IsInDemoMode ()
{
}
UInt32 __ACENV_CALL ACAPI_Licensing_GetProtectionMode()
Retrieves information about the protection mode.
◆ ACAPI_Licensing_GetSerialNumber()
UInt32 __ACENV_CALL ACAPI_Licensing_GetSerialNumber |
( |
| ) |
|
Retrieves the unique serial number of the current license.
- Since
- Archicad 26
- Returns
◆ ACAPI_Licensing_InvokeForwardDialog()
void __ACENV_CALL ACAPI_Licensing_InvokeForwardDialog |
( |
| ) |
|
Invoke generic SSA Forward dialog that warn that the user don't have SSA license.
- Since
- Archicad 26
◆ ACAPI_Licensing_IsSSALevelAtLeast()
bool __ACENV_CALL ACAPI_Licensing_IsSSALevelAtLeast |
( |
API_SSALevel |
requiredLevel | ) |
|
Returns whether the SSA subscription passed in the parameter is available.
- Since
- Archicad 26
- Parameters
-
requiredLevel | [in] The level to check the current level against. |
- Returns
- Example
bool ShouldEnableFeatureInAddOn ()
{
}
bool __ACENV_CALL ACAPI_Licensing_IsSSALevelAtLeast(API_SSALevel requiredLevel)
Returns whether the SSA subscription passed in the parameter is available.