BIM Coordinator Program (INT) April 22, 2024
Find the next step in your career as a Graphisoft Certified BIM Coordinator!
Archicad C++ API
About Archicad add-on development using the C++ API.

AddOns with cross-version functionality

Lukas Zeleny
Enthusiast

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?

BIM Manager at SIEBERT+TALAŠ
www.sieberttalas.com
1 REPLY 1
kovacsv
Booster

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

 

You can find even more examples here.

Learn and get certified!