Compile and create my own API in C++
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-05
01:29 PM
- last edited on
2023-08-03
09:42 AM
by
Doreena Deng
i'm Alex, from Spain. I need help about how to program API's for archiCAD, specifically how to compile C++ programs alredy finished with Qt GUI in Visual Studio and transform this project in an archiCAD API. I guess is something difficult but probably is not impossible. Please if somebody can help me or suggest me something different, please just contact with me here.
Thank you!
- Labels:
-
Add-On (C++)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-05 02:35 PM
frankito5 wrote:I haven't tried to do this, so I can only provide general advice. I suspect that you will have to rewrite the UI to use the ArchiCAD API rather than the Qt GUI. It will otherwise be very difficult - perhaps impossible - to integrate with ArchiCAD.
I need help about how to program API's for archiCAD, specifically how to compile C++ programs alredy finished with Qt GUI in Visual Studio and transform this project in an archiCAD API.
Also, be very careful with how resources (e.g. memory) are allocated by the Qt framework - a plugin cannot allocate resources with the same freedom as a standalone application.
And finally, be aware that the add-on only runs when ArchiCAD activates it, i.e. it cannot be running constantly on a separate thread.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-05 03:35 PM
Even i will continue trying i would like to know what is your expert suggestion. I'm working in an API that make some calculations but it must show a good appareance(e.g. EcoDesigner). I've compiled and i've taken a look to the examples from the API Developement kit and i runned them in archiCAD. But this appareance is not enough.
What can i do? Could you give me some references, tutorial about how to do it? Thank you again, your help will be really useful for me

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-06 08:53 PM
frankito5 wrote:Information about the ArchiCAD API is
Even i will continue trying i would like to know what is your expert suggestion. I'm working in an API that make some calculations but it must show a good appareance(e.g. EcoDesigner). I've compiled and i've taken a look to the examples from the API Developement kit and i runned them in archiCAD. But this appareance is not enough. What can i do? Could you give me some references, tutorial about how to do it?
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 08:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 09:32 AM
frankito5 wrote:Your question is too broad - can you post some screenshots to illustrate the kind of UI features/tools you are aspiring to?
And what about give good appearance to the APIs? Thanks.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 09:48 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 11:10 AM
frankito5 wrote:This is very easy to accomplish using the ArchiCAD API - read the documentation for the Dialog Manager (in the DevKit) and look at the example called
Ok. I would like to start with little tasks. For example, imagine i want to get two numbers from the user and make a calculation(addition). I woud like to create a window where the user can introduce those numbers, press a button (calculate) and get another window with the addition result.
Central Innovation
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 02:00 PM
'GDLG' 32580 Modal 0 0 306 158 "Dialogo Prueba" {
/* [ 1] */ Button 10 128 70 20 LargePlain "Aceptar"
/* [ 2] */ Button 216 128 70 20 LargePlain "Cancelar"
}
'DLGH' 32580 DLG_32580_Profile_Controls {
1 "" Button_0
2 "" Button_1
}
Now its supossed i have to create the dialog, but i dont know how to do it. Its supossed i have to create a new window when i click in the name of my API and i have to give tasks to these bottons inside. I've read the manual and i've seen i have to use a "call function" and a DGModalDialog, right?
In this examples is not programmed like that. It has to be inside my new function in DG_Test.cpp? Could u give me an example for this two buttons?
I'm sorry, but i'm starting and when i learn how to do one, it will be easier to develop more and more. Thank you!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2011-08-08 02:13 PM
