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.

Compilation error when open a new Archicad 26 API template on VS2019

yahavsa
Contributor

Hi there!

I'm just trying to open a completely new Archicad 26 add-on on VS2019, located in the "Examples" folder.

When I build the project for the first time (without coding anything) I get the following errors:

 

Error (active)	E1696	cannot open source file "RS.hpp"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Support\Inc\APIdefs_Interface.h	26
	
Error (active)	E0020	identifier "APIAny_NeigIDToElemTypeID" is undefined	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	156	

Error (active)	E0135	class "API_Elem_Head" has no member "typeID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	174	

Error (active)	E0135	class "API_Elem_Head" has no member "typeID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	180	

Error (active)	E0020	identifier "APIAny_GetElemTypeNameID" is undefined	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	422
	
Error (active)	E0135	class "API_ElemSearchPars" has no member "typeID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	562	

Error (active)	E0135	class "API_Elem_Head" has no member "typeID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	569	

Error (active)	E0135	class "API_ElemSearchPars" has no member "typeID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	569
	
Error (active)	E0135	class "API_SectElemType" has no member "parentID"	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Examples\test2\test2\Src\APICommon.c	600
	
Warning	MSB8064	Custom build for item "RFIX.WIN\test2.rc2" succeeded, but specified dependency "c:\program files\graphisoft\api development kit 26.3000\examples\test2\test2\build\x64\debug\ro\elemicons.grc.rc2" does not exist. This may cause incremental build to work incorrectly.	test2	C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppCommon.targets	241
	
Error	C1083	Cannot open include file: 'RS.hpp': No such file or directory	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Support\Inc\APIdefs_Interface.h	26	
	

 

 

 

I would like to mention three kinds of these errors:

1.

 

Error	C1083	Cannot open include file: 'RS.hpp': No such file or directory	test2	C:\Program Files\Graphisoft\API Development Kit 26.3000\Support\Inc\APIdefs_Interface.h	26	

 

Should I manually insert this header?

 

2. For the elemicons.grc.rc2 warning I have followed the attached link below but I couldn't figure it out

https://community.graphisoft.com/t5/Developer-forum/Translate-API-from-24-to-25-Missing-File/td-p/32...

 

3. It looks like many of the compilation errors are related to the new API features in ArchiCAD 26. I assume that all of these changes should be included in the ArchiCAD 26 Add-On Templates so I guess that i miss something.

Will appreciated any help or suggestions.

Thanks!

 

2 REPLIES 2
SamuraiMen
Participant

Try inserting the above header manually, in my case it fixed the problem. It is possible that this is specific to the ArchiCAD 26 API, by the way, missing something here  is a fairly common situation that many of us face.

Yeojin
Contributor

Hi, I'm experiencing the same issue. Have you found a solution?

Learn and get certified!