2022-12-07 02:58 PM
We are working on our own AddOn for Archicad but we use simultanously more Archicad versions. Is there a way to create custom AddOns using the API only once with cross-version functionality (e.g. for 25, 26 and future releases) or does the AddOn need to be built separately for each version of Archicad by using each version's respective API Development Kit/SDK?
2022-12-07 03:45 PM
You have to compile your Add-On for every Archicad version separately, but you can use the same code base for all versions. Sometimes the API changes so you have to write some code to make it work with all versions.
For example:
#if defined(ServerMainVers_2600)
ACAPI_Goodies_GetElemTypeName (elemHead.type, elemTypeName);
#else
ACAPI_Goodies (APIAny_GetElemTypeNameID, (void*) elemHead.typeID, &elemTypeName);
#endif