We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2023-08-31 03:14 PM - last edited on 2024-09-17 12:59 PM by Doreena Deng
Hi all,
I am following the guides here:
https://community.graphisoft.com/t5/Developer-Insights/Getting-started-with-Archicad-Add-Ons/ba-p/39...
here:
https://community.graphisoft.com/t5/Developer-Insights/How-To-Get-Started-Using-the-Development-Kit-...
here:
https://archicadapi.graphisoft.com/getting-started-with-archicad-add-ons
and here:
https://community.graphisoft.com/t5/Developer-forum/Using-the-Development-Kit-with-Visual-Studio-202...
Have to say it is quite confusing.
I have Archicad 26 installed along with API development kit, cmake, python and Visual Studio with MSVC v142
Plenty of errors when running commands.
cmake -T v142 gives me errors
Where is this command supposed to be run? Do I need to cd into a specific folder?
This one is outdated in one of the articles:
cmake -G "Visual Studio 15 2017" -A "x64" -DAC_API_DEVKIT_DIR="C:\API Development Kit 24.3009" ..
should be Visual Studio 17 2022 but even with that corrected, I still get errors. Should this be run in the unzipped cmake template folder?
Where is the recommended location to install API dev kit? Is it a problem if installed in C:\Program Files\Graphisoft? Would there be permissions issues?
How to use the cmake template?
Where to extract it?
Can you run the cmake command more than once?
Do you need to cleanup files if you run it more than once?
I have many questions as there seem to be quite a few details involved in setting this up and I'm not able to piece the puzzle together on my own.
Perhaps if someone knows of any tutorial videos on how to set this up?
Thank you
2023-09-04 07:37 AM
I think it's the best to start with the instructions for the cmake template: https://github.com/GRAPHISOFT/archicad-addon-cmake. The full command in your setup should be this (run it from the root of the cmake template repository):
cmake -B Build -G "Visual Studio 17 2022" -A x64 -T v142 -DAC_API_DEVKIT_DIR="C:\Program Files\GRAPHISOFT\API Development Kit 26.3000\Support" .