Identify license type using API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2023-12-27
12:57 PM
- last edited on
‎2024-09-16
02:44 PM
by
Doreena Deng
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎2024-01-08 11:21 AM
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:
- Software Key ID's have the format SWxxxxxxxx (where x is a placeholder for a number)
- 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