Create basic AddOn for Archicad 22 in Visual Studio
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-19 09:12 PM - last edited on 2022-10-05 01:26 PM by Daniel Kassai
I installed Visual Studio 2017, Archicad 22, I have the Archicad developer key, but I can not compile a code and install it as an addon in Archicad.
I want to learn how to make a very simplified addon, to see in Archicad that a window with a function opens and to go.
I looked at c ++ tutorials, c # .. but in vain.
I saw the extension of an addon is *. APX. do I have to do a Setup.exe for addon or how to do it? Interface in Archicad I create in C #?
I've been trying to see the examples from Archicad, but I get errors.
Some print screens would be very useful if you can not do a basic tutorial.
Please be very nice if you can help me. Bogdan
Sorry for my bad enlish i hope you understand
Solved! Go to Solution.
- Labels:
-
Add-On (C++)
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-21 12:59 AM
silazion wrote:The project seems to be damaged. There should be paths to the required API directories listed there. Try downloading the API dev-kit again.
I'm getting 647 errors for DG_Test.cpp. "Can not open source file ... and more"
Do I have to change something at Include Directory to work?
silazion wrote:Yes, when it builds you can see the examples in ARCHICAD.
After I can solve this problem, can I see the examples in archicad? Or, in the examples, only the code is written. I do not understand how I can modify the user interface, should I use C # for this or directly in Archicad?
http://archicadapi.graphisoft.com/hello-world-part-2-dialog-with-text-svg-icon-and-button
I wouldn't recommend trying to use C# in this context. It's unlikely to work.
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-20 01:13 AM
I succeeded to create data base with my ID, i save data base *.h file.
I found an example with hello world but did not load the * .grc source code.
do I need to install Windows SDK?
I would like to see an example that works. I will install VS 2015 and try again.
it was a good video or a few print screens
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-20 01:56 AM
silazion wrote:You can use VS2017 provided you select the VS2015 toolset for building the add-on. There is a blog article on the API Developer website here.
I think i must uninstall VS 2017 and install VS 2015 update 3.
I succeeded to create data base with my ID, i save data base *.h file.
Try building one of the example add-ons using the VS2015 toolset first. If you can get that working, you have taken a big step forward.
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-20 03:44 PM
Platform toolset: No Upgrade
Archicad: 22
Visual Studio: 2015
I'm getting 647 errors for DG_Test.cpp. "Can not open source file ... and more"
Do I have to change something at Include Directory to work?
After I can solve this problem, can I see the examples in archicad? Or, in the examples, only the code is written. I do not understand how I can modify the user interface, should I use C # for this or directly in Archicad?
Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-21 12:59 AM
silazion wrote:The project seems to be damaged. There should be paths to the required API directories listed there. Try downloading the API dev-kit again.
I'm getting 647 errors for DG_Test.cpp. "Can not open source file ... and more"
Do I have to change something at Include Directory to work?
silazion wrote:Yes, when it builds you can see the examples in ARCHICAD.
After I can solve this problem, can I see the examples in archicad? Or, in the examples, only the code is written. I do not understand how I can modify the user interface, should I use C # for this or directly in Archicad?
http://archicadapi.graphisoft.com/hello-world-part-2-dialog-with-text-svg-icon-and-button
I wouldn't recommend trying to use C# in this context. It's unlikely to work.
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2019-04-21 02:44 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-13 06:22 PM
I try to implement HelloWorld(simplest one) example. I got 2 errors. How can I find out?
(I have VS 2017 and api dev 23)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-13 08:05 PM
For the other errors in the second image, can you tell me which platform toolset you are using for the project? You can find this in the project properties under
Active Thread Ltd
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-13 09:51 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2020-04-14 10:54 AM
const size_t hwLen = strlen (hwText) + 1;…to this:
const GSSize hwLen = strlen (hwText) + 1;
Active Thread Ltd