We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

Identify license type using API

yahavsa
Contributor

Hello
I wonder if there is a way to detect whether the current license is a physical plug (USB) or a network license, using the API. Thanks!

1 REPLY 1

Hi!
I don't know all the different Archicad licensing options, but most things can be differentiated with functions here: https://graphisoft.github.io/archicad-api-devkit/group___licensing.html

 

For example I'm using ACAPI_Licensing_GetConfigurationNumber. It gives you the Key ID of the licenses.

To my knowledge there's two major cases with different formats:

  1. Software Key ID's have the format SWxxxxxxxx (where x is a placeholder for a number)
  2. Hardware Key ID's have the format x-xxxxxxxxx (again where x is a placeholder for a number)

A hardware key ID can still be plugged into a server locally at the customers site. So if you'd also need to differentiate there. Not sure if you can get that information. Maybe also check out ACAPI_Licensing_GetProtectionMode

 

Hope that helps!

Bernd