<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Compile and create my own API in C++ in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154930#M6250</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 07:42:16 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T07:42:16Z</dc:date>
    <item>
      <title>Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154930#M6250</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi, &lt;BR /&gt;&lt;BR /&gt;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. &lt;BR /&gt;&lt;BR /&gt;Thank you!&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 07:42:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154930#M6250</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T07:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154931#M6251</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;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.&lt;/BLOCKQUOTE&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
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.&lt;BR /&gt;
&lt;BR /&gt;
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.</description>
      <pubDate>Fri, 05 Aug 2011 12:35:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154931#M6251</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-05T12:35:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154932#M6252</link>
      <description>First of all, thank you for a quickly reply. I imagined something like that, but i thougt it was possible. I'm trying including the Qt files in a VS project and the oppossite, including into Qt project all the files remaining to the API. Unfortunately there are always mistakes about librarys or missing files.&lt;BR /&gt;
&lt;BR /&gt;
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. &lt;BR /&gt;
&lt;BR /&gt;
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 &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;.</description>
      <pubDate>Fri, 05 Aug 2011 13:35:11 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154932#M6252</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-05T13:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154933#M6253</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;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?&lt;/BLOCKQUOTE&gt;
Information about the ArchiCAD API is &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;very&lt;E&gt;&lt;/E&gt; scarce, so there isn't really anywhere to look outside of the examples bundled with the developer kit.</description>
      <pubDate>Sat, 06 Aug 2011 18:53:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154933#M6253</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-06T18:53:06Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154934#M6254</link>
      <description>And what about give good appearance to the APIs? Thanks.</description>
      <pubDate>Mon, 08 Aug 2011 06:32:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154934#M6254</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-08T06:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154935#M6255</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;And what about give good appearance to the APIs? Thanks.&lt;/BLOCKQUOTE&gt;
Your question is too broad - can you post some screenshots to illustrate the kind of UI features/tools you are aspiring to?</description>
      <pubDate>Mon, 08 Aug 2011 07:32:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154935#M6255</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-08T07:32:19Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154936#M6256</link>
      <description>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.</description>
      <pubDate>Mon, 08 Aug 2011 07:48:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154936#M6256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-08T07:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154937#M6257</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;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.&lt;/BLOCKQUOTE&gt;
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 &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DG_Test&lt;E&gt;&lt;/E&gt;. The API Dialog Manager can handle a wide variety of UI control types, including &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Check Box, Date &amp;amp; Time Control, Edit Control, Group Box, Icon, List Box, List View, Picture, Pop-up Control, Progress Bar, Push Button, Push Menu Control, Radio Button, Rich Edit Control, Scroll Bar, Separator Item, Slider Bar, Spin Control, Splitter Control, Static Text, Tab Control, Tree View, User Control, User Item&lt;E&gt;&lt;/E&gt;. You can also create modal dialogs, modeless palettes, custom menus, and new panels within existing settings dialogs.</description>
      <pubDate>Mon, 08 Aug 2011 09:10:21 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154937#M6257</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-08T09:10:21Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154938#M6258</link>
      <description>I was reading the Dialog Manager just to make a new modal dialog in the DG_Test example. I've modified the GRF file just for make a new one with two buttons. &lt;BR /&gt;
&lt;BR /&gt;
'GDLG'  32580  Modal 0  0  306  158  "Dialogo Prueba" {&lt;BR /&gt;
/* [  1] */ Button 10  128   70   20  LargePlain  "Aceptar"&lt;BR /&gt;
/* [  2] */ Button 216  128   70   20  LargePlain  "Cancelar"&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
'DLGH'  32580  DLG_32580_Profile_Controls {&lt;BR /&gt;
1	""							Button_0&lt;BR /&gt;
2	""							Button_1&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
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?&lt;BR /&gt;
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?&lt;BR /&gt;
&lt;BR /&gt;
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!</description>
      <pubDate>Mon, 08 Aug 2011 12:00:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154938#M6258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-08T12:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154939#M6259</link>
      <description>Good news!! I have my new dialog with two buttons in my API menu. So, dont text me and wait for my new answer. I hope it will be in few days &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;. Thank you a lot!</description>
      <pubDate>Mon, 08 Aug 2011 12:13:37 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154939#M6259</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-08T12:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154940#M6260</link>
      <description>Hi again,&lt;BR /&gt;
&lt;BR /&gt;
i am "playing" with the GUI and i've found a problem. I have created a Modal dialog with 4 edit text and two buttons. But, i dont know when i try to change the size(208px) in the GRC file, it does not change in the API and i do not know why! Here, the code regarding to the GRC.&lt;BR /&gt;
&lt;BR /&gt;
'GDLG'  32590  Modal 0  0  306  208  "Caracteristicas del Captador" {&lt;BR /&gt;
			Button             50  148   70   20  LargePlain  "Aceptar"&lt;BR /&gt;
			Button             200  148   70   20  LargePlain  "Cancelar"&lt;BR /&gt;
			LeftText           20   25   80   16  LargePlain  "Caract. 1:"&lt;BR /&gt;
			TextEdit	      105	20	 100  20  LargePlain  50			&lt;BR /&gt;
			LeftText           20   55   80   16  LargePlain  "Caract. 2:"&lt;BR /&gt;
			TextEdit	      105	50	 100  20  LargePlain  50&lt;BR /&gt;
			LeftText           20   85   80   16  LargePlain  "Caract. 3:"&lt;BR /&gt;
			TextEdit	      105	80	 100  20  LargePlain  50&lt;BR /&gt;
			LeftText           20   115  80   16  LargePlain  "Caract. 4:"&lt;BR /&gt;
			TextEdit	      105	110	 100  20  LargePlain  50&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
'DLGH'  32590 DLG_32590_Dialogo_prueba {&lt;BR /&gt;
1	""							Button_0&lt;BR /&gt;
2	""							Button_1&lt;BR /&gt;
3	""							LeftText_0&lt;BR /&gt;
4	""							TextEdit_0	&lt;BR /&gt;
5	""							LeftText_1&lt;BR /&gt;
6	""							TextEdit_1&lt;BR /&gt;
7	""							LeftText_2&lt;BR /&gt;
8	""							TextEdit_2&lt;BR /&gt;
9	""							LeftText_3&lt;BR /&gt;
10	""							TextEdit_3&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
Could it be something related with the handler? Even i don't think so...Thanks!</description>
      <pubDate>Tue, 09 Aug 2011 09:24:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154940#M6260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-09T09:24:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154941#M6261</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;i am "playing" with the GUI and i've found a problem. I have created a Modal dialog with 4 edit text and two buttons. But, i dont know when i try to change the size(208px) in the GRC file, it does not change in the API and i do not know why!&lt;/BLOCKQUOTE&gt;
ArchiCAD automatically stores the previous size and position of dialogs, and retrieves them the next time the dialog is displayed. To override this, you can obtain and apply the correct dialog size during the initialisation phase of the dialog. Refer to &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGGetDialogSize&lt;E&gt;&lt;/E&gt; for the means to get the correct dialog size.</description>
      <pubDate>Tue, 09 Aug 2011 09:50:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154941#M6261</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-09T09:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154942#M6262</link>
      <description>1. Where i have to include this call function? &lt;BR /&gt;
2. Should i have to modify the size from the GRC file?&lt;BR /&gt;
3. Is this call correct?&lt;BR /&gt;
&lt;BR /&gt;
void DGGetDialogSize (short dialId,short rectType,short* hSize,short* vSize);&lt;BR /&gt;
&lt;BR /&gt;
DGGetDialogSize (Dialogo_prueba_GDLGID, DG_CLIENT, (short*)306, (short*)408);&lt;BR /&gt;
&lt;BR /&gt;
where Dialogo_prueba_GDLGID is 32590, as the resId Modal dialog.</description>
      <pubDate>Tue, 09 Aug 2011 10:33:13 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154942#M6262</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-09T10:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154943#M6263</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;1. Where i have to include this call function?&lt;/BLOCKQUOTE&gt;
You could add it to the dialog callback, when it is called for the dialog initialisation (DG_MSG_INIT).&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;2. Should i have to modify the size from the GRC file?&lt;/BLOCKQUOTE&gt;
&lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGGetDialogSize&lt;E&gt;&lt;/E&gt; can retrieve the size specified in the GRC file (with DG_ORIGFRAME).&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;3. Is this call correct?&lt;BR /&gt;
void DGGetDialogSize (short dialId,short rectType,short* hSize,short* vSize);&lt;BR /&gt;
DGGetDialogSize (Dialogo_prueba_GDLGID, DG_CLIENT, (short*)306, (short*)408);&lt;/BLOCKQUOTE&gt;
That's the right call, but you shouldn't cast an integer value as a pointer. You want to retrieve the size of the dialog, so you should pass the addresses of integer variables to the function, e.g.:&lt;PRE&gt;short dialogWide = 0;
short dialogDeep = 0;
DGGetDialogSize (Dialogo_prueba_GDLGID, DG_ORIGFRAME, &amp;amp;dialogWide, &amp;amp;dialogDeep);&lt;/PRE&gt;
Then set the dialog size with those values using &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt; DGSetDialogSize&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Tue, 09 Aug 2011 12:31:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154943#M6263</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-09T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154944#M6264</link>
      <description>&lt;B&gt;Unfortunately it does not work. I have alredy included it in the DGCALLBACK, inicializating 'ancho' and 'alto' inside and it is supossed it has to achieve the value of wide and hight of the GRC. &lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
static void	CaractCaptador(void)&lt;BR /&gt;
{&lt;BR /&gt;
	GSResModule	filNum;&lt;BR /&gt;
	bool		isOK;&lt;BR /&gt;
&lt;BR /&gt;
	// Get the dialog from our resource file&lt;BR /&gt;
	filNum = ACAPI_UseOwnResModule ();&lt;BR /&gt;
	isOK=&lt;FONT color="red"&gt;(DGModalDialog(CaractCapt_GDLGID,CaractCaptador_Handler, 0) == DG_OK);&lt;/FONT&gt;&lt;BR /&gt;
	ACAPI_ResetResModule (filNum);&lt;BR /&gt;
&lt;BR /&gt;
	return;&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
static short DGCALLBACK CaractCaptador_Handler (short message, short 			dialogID,	short	item, DGUserData /*userData*/, DGMessageData){&lt;BR /&gt;
&lt;BR /&gt;
	// Declaramos las variables que van a recibir el valor del GRC&lt;BR /&gt;
	short	ancho = 0; &lt;BR /&gt;
	short	alto = 0; &lt;BR /&gt;
	&lt;BR /&gt;
	switch (message) {&lt;BR /&gt;
		case DG_MSG_INIT:&lt;BR /&gt;
			API_UCCallbackType ucb;&lt;BR /&gt;
			// initialize user controls&lt;BR /&gt;
			BNZeroMemory (&amp;amp;ucb, sizeof (ucb));&lt;BR /&gt;
			&lt;FONT color="red"&gt;DGGetDialogSize (CaractCapt_GDLGID, DG_ORIGFRAME, &amp;amp;ancho, &amp;amp;alto);&lt;/FONT&gt;&lt;BR /&gt;
			ucb.dialogID = dialogID;&lt;BR /&gt;
			ucb.type	 = APIUserControlType_WallProfile;&lt;BR /&gt;
			ucb.itemID	 = WallProfileItm;&lt;BR /&gt;
			ACAPI_Interface (APIIo_SetUserControlCallbackID, &amp;amp;ucb, NULL);&lt;BR /&gt;
			ucb.type	 = APIUserControlType_BeamProfile;&lt;BR /&gt;
			ucb.itemID	 = BeamProfileItm;&lt;BR /&gt;
			ACAPI_Interface (APIIo_SetUserControlCallbackID, &amp;amp;ucb, NULL);&lt;BR /&gt;
			ucb.type	 = APIUserControlType_ColumnProfile;&lt;BR /&gt;
			ucb.itemID	 = ColumnProfileItm;&lt;BR /&gt;
			ACAPI_Interface (APIIo_SetUserControlCallbackID, &amp;amp;ucb, NULL);&lt;BR /&gt;
			ucb.type	 = APIUserControlType_AllProfile;&lt;BR /&gt;
			ucb.itemID	 = AllProfileItm;&lt;BR /&gt;
			ACAPI_Interface (APIIo_SetUserControlCallbackID, &amp;amp;ucb, NULL);&lt;BR /&gt;
			break;&lt;BR /&gt;
&lt;BR /&gt;
		case DG_MSG_CLICK:&lt;BR /&gt;
			result = item;&lt;BR /&gt;
			break;&lt;BR /&gt;
&lt;BR /&gt;
		case DG_MSG_CLOSE:&lt;BR /&gt;
			result = item;&lt;BR /&gt;
			break;&lt;BR /&gt;
		}&lt;BR /&gt;
&lt;BR /&gt;
	return (result);&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;B&gt;CaractCapt_GDLGID is 32590, and u can see the GRC code regarding to this CALLBACK:&lt;/B&gt;&lt;BR /&gt;
&lt;BR /&gt;
&lt;FONT color="red"&gt;'GDLG'  32590  Modal 0  0  800  800  "Caracteristicas del Captador"&lt;/FONT&gt; {&lt;BR /&gt;
			Button             50  148   70   20  LargePlain  "Aceptar"&lt;BR /&gt;
			Button            200  148   70   20  LargePlain  "Cancelar"&lt;BR /&gt;
			LeftText           20   25   80   16  LargePlain  "Caract. 1:"&lt;BR /&gt;
			TextEdit		   105	20	 100  20  LargePlain  50			&lt;BR /&gt;
			LeftText           20   55   80   16  LargePlain  "Caract. 2:"&lt;BR /&gt;
			TextEdit		   105	50	 100  20  LargePlain  50&lt;BR /&gt;
			LeftText           20   85   80   16  LargePlain  "Caract. 3:"&lt;BR /&gt;
			TextEdit		   105	80	 100  20  LargePlain  50&lt;BR /&gt;
			LeftText           20   115  80   16  LargePlain  "Caract. 4:"&lt;BR /&gt;
			TextEdit		   105	110	 100  20  LargePlain  50&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
'DLGH'  32590 DLG_32590_CaractEner {&lt;BR /&gt;
1	""							Button_0&lt;BR /&gt;
2	""							Button_1&lt;BR /&gt;
3	""							LeftText_0&lt;BR /&gt;
4	""							TextEdit_0	&lt;BR /&gt;
5	""							LeftText_1&lt;BR /&gt;
6	""							TextEdit_1&lt;BR /&gt;
7	""							LeftText_2&lt;BR /&gt;
8	""							TextEdit_2&lt;BR /&gt;
9	""							LeftText_3&lt;BR /&gt;
10	""							TextEdit_3&lt;BR /&gt;
}&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Now i have the same size (no 800 x 800 as i want) i refered in last post. Could you tell me if i have made any error or if i have forgotten something? Thank you again.</description>
      <pubDate>Wed, 10 Aug 2011 10:33:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154944#M6264</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-10T10:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154945#M6265</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;Could you tell me if i have made any error or if i have forgotten something?&lt;/BLOCKQUOTE&gt;
I can't see where you use &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGSetDialogSize&lt;E&gt;&lt;/E&gt; to set the dialog to the size obtained with &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;DGGetDialogSize&lt;E&gt;&lt;/E&gt;.</description>
      <pubDate>Wed, 10 Aug 2011 14:55:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154945#M6265</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-10T14:55:55Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154946#M6266</link>
      <description>Ok, now i know how it works, getting and the setting the size, perfect!&lt;BR /&gt;
&lt;BR /&gt;
1. Next task is fill a list box without set each field one by one and repeat DGListSetItemText" X times. I want to read from a .TXT file 52 fields. The problem is when i try to open the file, because it does not open. Where i have to include this .TXT file? Or what i have to do?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
static short DGCALLBACK		TreeViewDlgCallBack (short message, short dialId, short itemId,&lt;BR /&gt;
												 DGUserData /*userData*/, DGMessageData /*msgData*/)&lt;BR /&gt;
{&lt;BR /&gt;
#define FOLDER_CONTENT	3&lt;BR /&gt;
#define CHANGE_ICON		4&lt;BR /&gt;
#define TREEVIEW		5&lt;BR /&gt;
&lt;BR /&gt;
	Int32 treeItem;&lt;BR /&gt;
	&lt;BR /&gt;
	&lt;FONT color="red"&gt;ifstream prov("provincias.txt", ifstream::in);&lt;BR /&gt;
	&lt;BR /&gt;
	if(!prov){&lt;BR /&gt;
		cout &amp;lt;&amp;lt; "Error de apertura del fichero." &amp;lt;&amp;lt; endl;&lt;BR /&gt;
		return -1;&lt;BR /&gt;
	}&lt;/FONT&gt;&lt;BR /&gt;
&lt;BR /&gt;
	&lt;FONT color="red"&gt;short indprov = 1;&lt;BR /&gt;
	char * cadprov = new char [15];&lt;/FONT&gt;&lt;BR /&gt;
	static TreeViewData		tvd = { 0 };&lt;BR /&gt;
&lt;BR /&gt;
	switch (message) {&lt;BR /&gt;
		case DG_MSG_INIT:&lt;BR /&gt;
			LoadTreeViewDialogIcons (&amp;amp;tvd);&lt;BR /&gt;
			DGListSetHeaderItemText(SelecProv_GDLGID,3,1,"Provincia");&lt;BR /&gt;
			for(int i=0;i&amp;lt;52;i++)&lt;BR /&gt;
				//DGListInsertItem (short dialId,short item,short listItem);&lt;BR /&gt;
				DGListInsertItem(SelecProv_GDLGID,3,DG_LIST_BOTTOM);&lt;BR /&gt;
			//DGListSetItemText (short dialId, short item, short listItem, const char* text)&lt;BR /&gt;
			DGListSetItemText(SelecProv_GDLGID,3,indprov,"Alicante");&lt;BR /&gt;
			//DGListSetItemText(SelecProv_GDLGID,3,2,"Castellón");&lt;BR /&gt;
			//DGListSetItemText(SelecProv_GDLGID,3,3,"Valencia");&lt;BR /&gt;
		&lt;FONT color="red"&gt;while(prov &amp;gt;&amp;gt; cadprov)&lt;BR /&gt;
		DGListSetItemText(SelecProv_GDLGID,3,indprov++,cadprov);&lt;/FONT&gt;&lt;BR /&gt;
			break;&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
2. Another point, i would like to see errors by the output screen, but i cant generate this output messages because there is not .EXE file. How to debug the API in VS2005 to check errors? And &lt;BR /&gt;
&lt;BR /&gt;
3. There is one way to update the archiCAD without open&amp;amp;close each time i want to see the changes in the API?&lt;BR /&gt;
&lt;BR /&gt;
Thank you,&lt;BR /&gt;
&lt;BR /&gt;
Alex</description>
      <pubDate>Thu, 11 Aug 2011 08:36:25 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154946#M6266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-11T08:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154947#M6267</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;1. I want to read from a .TXT file 52 fields. The problem is when i try to open the file, because it does not open. Where i have to include this .TXT file?&lt;/BLOCKQUOTE&gt;
I get the impression you haven't done much C/C++ development to date. If you write the following:&lt;PRE&gt;ifstream prov("provincias.txt", ifstream::in);&lt;/PRE&gt;
...you haven't stated where the file should be found, so it will assume a default directory for your file, probably &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;C:\provincias.txt&lt;E&gt;&lt;/E&gt;. I suggest reading the &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;Input/Output&lt;E&gt;&lt;/E&gt; section of the API documentation. Also, look up the functionality provided by &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;APIEnv_GetSpecFolderID&lt;E&gt;&lt;/E&gt; to obtain the location of key directories.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;2. How to debug the API in VS2005 to check errors?&lt;/BLOCKQUOTE&gt;
Set the ArchiCAD application as the target for debugging.&lt;BR /&gt;

&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;3. There is one way to update the archiCAD without open&amp;amp;close each time i want to see the changes in the API?&lt;/BLOCKQUOTE&gt;
Unfortunately not.</description>
      <pubDate>Thu, 11 Aug 2011 09:19:16 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154947#M6267</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-11T09:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154948#M6268</link>
      <description>&lt;BLOCKQUOTE&gt;Set the ArchiCAD application as the target for debugging.&lt;/BLOCKQUOTE&gt;

How to do it?</description>
      <pubDate>Thu, 11 Aug 2011 09:39:50 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154948#M6268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-11T09:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Compile and create my own API in C++</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154949#M6269</link>
      <description>&lt;BLOCKQUOTE&gt;frankito5 wrote:&lt;BR /&gt;&lt;BLOCKQUOTE&gt;Set the ArchiCAD application as the target for debugging.&lt;/BLOCKQUOTE&gt;
How to do it?&lt;/BLOCKQUOTE&gt;

In the Debugging section of the project properties (see attached image).</description>
      <pubDate>Thu, 11 Aug 2011 12:22:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Compile-and-create-my-own-API-in-C/m-p/154949#M6269</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2011-08-11T12:22:02Z</dc:date>
    </item>
  </channel>
</rss>

