<?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 Re: Displaying Object Tool window programmatically in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Displaying-Object-Tool-window-programmatically/m-p/243463#M2546</link>
    <description>So, I got the answer to the first question after extensive search and some outside help.&lt;BR /&gt;
It turns out that I want to use ACAPI_Interface function like in the example from &lt;A href="https://archicadapi.graphisoft.com/documentation/apiio_objectsettingsid" target="_blank"&gt;&lt;LINK_TEXT text="https://archicadapi.graphisoft.com/docu ... settingsid"&gt;https://archicadapi.graphisoft.com/documentation/apiio_objectsettingsid&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
However, the part where it says about filtering is unclear to me because I can't get it to work. Either the filtering is not working the way I would think or I'm doing something wrong.&lt;BR /&gt;
&lt;BR /&gt;
Here's what I already have:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;void MyFunction(const uchar_t* name)
{
       API_LibPart part;
       BNZeroMemory(&amp;amp;part, sizeof(API_LibPart));
       lstrcpy(part.file_UName, name);
       GSErrCode err = ACAPI_LibPart_Search(&amp;amp;part, false);
 
       if (err == NoError)
       {
             API_ObjectSettingsPars api_objSetPars;
             BNZeroMemory(&amp;amp;api_objSetPars, sizeof(API_ObjectSettingsPars));

             api_objSetPars.elemDef.header.typeID = API_ObjectID;
             CHCopyC(part.ownUnID, api_objSetPars.subtypeID); 

             err = ACAPI_Interface(APIIo_ObjectSettingsID, &amp;amp;api_objSetPars);
 
             if (err == NoError)
             {
                   // do sth with the element
             }
       }
}
&lt;/PRE&gt;

The window pops up but there's no filtering at all. It just shows everything that's in the whole library (chairs, tables and other decorative stuff).&lt;BR /&gt;
&lt;BR /&gt;
Could someone help me from here, please?</description>
    <pubDate>Mon, 22 Feb 2021 19:40:19 GMT</pubDate>
    <dc:creator>Lk_</dc:creator>
    <dc:date>2021-02-22T19:40:19Z</dc:date>
    <item>
      <title>Displaying Object Tool window programmatically</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Displaying-Object-Tool-window-programmatically/m-p/243462#M2545</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;I have a library with some custom objects in it. Is there any way to command the add-on to display the 'Object Tool' window so the user can just pick the object and place it in the project? Also, if it's possible, can I highlight the contents of the library so the user would not have to look for it in the library tree?&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Sep 2021 07:58:52 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Displaying-Object-Tool-window-programmatically/m-p/243462#M2545</guid>
      <dc:creator>Lk_</dc:creator>
      <dc:date>2021-09-14T07:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Displaying Object Tool window programmatically</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Displaying-Object-Tool-window-programmatically/m-p/243463#M2546</link>
      <description>So, I got the answer to the first question after extensive search and some outside help.&lt;BR /&gt;
It turns out that I want to use ACAPI_Interface function like in the example from &lt;A href="https://archicadapi.graphisoft.com/documentation/apiio_objectsettingsid" target="_blank"&gt;&lt;LINK_TEXT text="https://archicadapi.graphisoft.com/docu ... settingsid"&gt;https://archicadapi.graphisoft.com/documentation/apiio_objectsettingsid&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
However, the part where it says about filtering is unclear to me because I can't get it to work. Either the filtering is not working the way I would think or I'm doing something wrong.&lt;BR /&gt;
&lt;BR /&gt;
Here's what I already have:
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;void MyFunction(const uchar_t* name)
{
       API_LibPart part;
       BNZeroMemory(&amp;amp;part, sizeof(API_LibPart));
       lstrcpy(part.file_UName, name);
       GSErrCode err = ACAPI_LibPart_Search(&amp;amp;part, false);
 
       if (err == NoError)
       {
             API_ObjectSettingsPars api_objSetPars;
             BNZeroMemory(&amp;amp;api_objSetPars, sizeof(API_ObjectSettingsPars));

             api_objSetPars.elemDef.header.typeID = API_ObjectID;
             CHCopyC(part.ownUnID, api_objSetPars.subtypeID); 

             err = ACAPI_Interface(APIIo_ObjectSettingsID, &amp;amp;api_objSetPars);
 
             if (err == NoError)
             {
                   // do sth with the element
             }
       }
}
&lt;/PRE&gt;

The window pops up but there's no filtering at all. It just shows everything that's in the whole library (chairs, tables and other decorative stuff).&lt;BR /&gt;
&lt;BR /&gt;
Could someone help me from here, please?</description>
      <pubDate>Mon, 22 Feb 2021 19:40:19 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Displaying-Object-Tool-window-programmatically/m-p/243463#M2546</guid>
      <dc:creator>Lk_</dc:creator>
      <dc:date>2021-02-22T19:40:19Z</dc:date>
    </item>
  </channel>
</rss>

