<?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: Selecting a tool for object insertion in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256982#M4988</link>
    <description>&lt;BLOCKQUOTE&gt;gehairing wrote:&lt;BR /&gt;I have an Addon that let's me download objects (.gsm, .dor etc...).&lt;BR /&gt;
After downloading the object the user want's to insert the downloaded object in the current model.&lt;BR /&gt;
&lt;BR /&gt;
To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).&lt;BR /&gt;
&lt;BR /&gt;
Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object&lt;/BLOCKQUOTE&gt;
Take a look at the following API functions:&lt;BR /&gt;
1) &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_SetToolBoxModeID&lt;E&gt;&lt;/E&gt; to set the active tool, and …&lt;BR /&gt;
2) &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_ChangeDefaults&lt;E&gt;&lt;/E&gt; to set the object to be placed</description>
    <pubDate>Mon, 08 Feb 2016 23:08:26 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2016-02-08T23:08:26Z</dc:date>
    <item>
      <title>Selecting a tool for object insertion</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256981#M4987</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello &lt;IMG style="display: inline;" src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" border="0" /&gt;&lt;BR /&gt;&lt;BR /&gt;I have an Addon that let's me download objects (.gsm, .dor etc...).&lt;BR /&gt;After downloading the object the user want's to insert the downloaded object in the current model.&lt;BR /&gt;&lt;BR /&gt;To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).&lt;BR /&gt;&lt;BR /&gt;Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jul 2023 19:12:49 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256981#M4987</guid>
      <dc:creator>gehairing</dc:creator>
      <dc:date>2023-07-12T19:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a tool for object insertion</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256982#M4988</link>
      <description>&lt;BLOCKQUOTE&gt;gehairing wrote:&lt;BR /&gt;I have an Addon that let's me download objects (.gsm, .dor etc...).&lt;BR /&gt;
After downloading the object the user want's to insert the downloaded object in the current model.&lt;BR /&gt;
&lt;BR /&gt;
To do this correctly, the user must select the right tool depending on the object's type. (The Windows tool to insert windows into a wall, the Stairs tool to place a stair...).&lt;BR /&gt;
&lt;BR /&gt;
Is there an API that allows me to do that for the user so that after the download of the object Archicad is in the right mode for the insertion of that object&lt;/BLOCKQUOTE&gt;
Take a look at the following API functions:&lt;BR /&gt;
1) &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_SetToolBoxModeID&lt;E&gt;&lt;/E&gt; to set the active tool, and …&lt;BR /&gt;
2) &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;ACAPI_Element_ChangeDefaults&lt;E&gt;&lt;/E&gt; to set the object to be placed</description>
      <pubDate>Mon, 08 Feb 2016 23:08:26 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256982#M4988</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2016-02-08T23:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Selecting a tool for object insertion</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256983#M4989</link>
      <description>Thanks a lot Ralph &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt;&lt;BR /&gt;
&lt;BR /&gt;
The "APIEnv_SetToolBoxModeID" is what i didn't find.&lt;BR /&gt;
&lt;BR /&gt;
For placing the object in the model, i have already the code.&lt;BR /&gt;
It uses "ACAPI_Element_ChangeDefaults" and works perfectly.&lt;BR /&gt;
&lt;BR /&gt;
Have a nice day.</description>
      <pubDate>Tue, 09 Feb 2016 08:06:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Selecting-a-tool-for-object-insertion/m-p/256983#M4989</guid>
      <dc:creator>gehairing</dc:creator>
      <dc:date>2016-02-09T08:06:54Z</dc:date>
    </item>
  </channel>
</rss>

