Due to a scheduled maintenance, a maximum 20 minutes license delivery outage may be expected on July 6 2024 (Saturday) between 6PM to 8PM (CEST).
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

How to build Add-on in AC27

pphamt
Participant

Hello @All,

 

I am new to C++ and the ArchiCAD API in general.

 

I've been learning how to create a .sln file from a CmakeList.txt following the instructions I've found in our group. Honestly, I've followed the steps closely, but still can't manage to build the final product, which is the add-on .apx file. I have some questions and really need your help:

 

  1. When I installed Visual Studio (VS), both VS 2019 and VS 2022, fulfilling the requirements recommended by the site. After that, I proceeded to install the ArchiCAD API (I'm using AC27). I chose all the requirements during installation, but when I open VS 2019 and VS 2022, I can't find the Archicad Add-Ons Template. What should I do to resolve this?      

     

    pphamt_0-1719912819833.png

     

  2. After downloading archicad-addon-cmake, I followed the steps described in this article https://community.graphisoft.com/t5/Documentation/developing-an-add-on-on-c/m-p/395814#M61448, but when I reached step 9 in the image by "Joel Buehler," I couldn't complete building my .apx file. It gave me the following error:

          pphamt_0-1719911624212.png

          What should I do to fix this error, or how can I build the Archicad add-on project?

 

Of course, I am still trying to resolve these two issues I've asked you about, but if I could get more help from you, I would really appreciate it.

 

Thank you!

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Viktor Kovacs
Graphisoft
Graphisoft

I recommend using this as a starting point:

https://community.graphisoft.com/t5/Knowledge-Base/How-To-Set-up-your-Add-On-development-environment...

 

Now we have a python script that does all the steps above.

View solution in original post

5 REPLIES 5
Joel Buehler
Enthusiast

hehey pphamt. 

 

Just to be clear, when you are at step 9, you where succsessfull in creating the *.sln correct? 

 

Best Regards

Joel 

Solution
Viktor Kovacs
Graphisoft
Graphisoft

I recommend using this as a starting point:

https://community.graphisoft.com/t5/Knowledge-Base/How-To-Set-up-your-Add-On-development-environment...

 

Now we have a python script that does all the steps above.

Hi Joel Buehler,


I was able to create the *.sln and then proceeded to build the file but encountered an error.
 
I tried a different method and successfully built the .apx file.
 
Thank you
 
 
 

Hi Viktor Kovacs,

 

Thanks for your support

Very cool. 

I recommend you link the blog of the developer site to this knowlege base. information is now kinda all over the place. 

 

https://archicadapi.graphisoft.com/getting-started-with-archicad-add-ons

 

VS

 

https://community.graphisoft.com/t5/Knowledge-Base/How-To-Set-up-your-Add-On-development-environment...