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

Is there any guild for newbie to create a start project with C++ and Visual Studio 2017?

Anonymous
Not applicable
Hello,
I have just found in the API website but cannot find any post or guide to create a start project with VS 2017 with C++ (just have Hello World 2 blog post).
Regards,
SAGI-Viz
7 REPLIES 7
Akos Somorjai
Graphisoft
Graphisoft
Hi,

Please download the General API development kit, you'll find plenty of examples there. Our advice is to go through them, and explore what's happening.

Best, Akos
Anonymous
Not applicable
Hi Akos,
Thank you very much. I will do it and learn something from the documents.

Best regards, HAI
Anonymous
Not applicable
Hi Akos,

Could you please help me to fix my problem in Build example add-on?

I cannot Build the Geometry_Test Example, error is below

1>------ Build started: Project: Geometry_Test, Configuration: Debug x64 ------
1>Geometry_Test.cpp
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2589: '(': illegal token on right side of '::'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2146: syntax error: missing ')' before identifier 'strcmp_DISABLED'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2065: 'strcmp_DISABLED': undeclared identifier
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2143: syntax error: missing ';' before '!'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2059: syntax error: ')'
1>c:\program files (x86)\microsoft visual studio\2017\community\vc\tools\msvc\14.15.26726\include\xlocale(485): error C2059: syntax error: '=='
1>Done building project "Geometry_Test.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Please show me how to fix it to build. Thank you.
Regards, HAI
Anonymous
Not applicable
Hello,
This could probably be because your toolset version does not match the required toolset version.
try downloading the vs2015 toolset v140. if the problem is still there do tell here
Tibor Lorantfy
Graphisoft Alumni
Graphisoft Alumni
ARCHICAD 21 and 22 both use the Visual Studio 2015 compiler for building add-on projects. With the appearance of Visual Studio 2017 and 2019 you’ll need to do a few extra hops to be able to build your add-ons.
Please read this blog post for further details: Working in Visual Studio 2017

Please note that ARCHICAD 23 will use the Visual Studio 2017 toolset for building Add-On projects. So you won't be able to build your add-on projects in Visual Studio 2015.
You can check the new API features and technical changes in ARCHICAD 23 here.
Anonymous
Not applicable
Hi Tibor and nikhil,

Thank so much for your supporting.

Regards.
Anonymous
Not applicable
Hi,

This tutorial can be really useful for.

https://www.youtube.com/channel/UCctZprzqwZYcymiog-gbzuw