<?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: ACAPI_Element_CatchNewElement does not work with specified Type in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/612971#M9577</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;With nullptr instead of elemType it gets triggered (3x: 1. APINotifyElement_BeginEvents, 2. APINotifyElement_New, 3. APINotifyElement_EndEvents)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You already got the answer. You will always get 'APINotifyElement_BeginEvents' first and 'APINotifyElement_EndEvents' last for element event handlers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 28 Jun 2024 06:19:09 GMT</pubDate>
    <dc:creator>Yohei Sekiguchi</dc:creator>
    <dc:date>2024-06-28T06:19:09Z</dc:date>
    <item>
      <title>ACAPI_Element_CatchNewElement does not work with specified Type</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598452#M9288</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I have a problem with the CatchNewElement Handler&lt;/P&gt;
&lt;P&gt;This is my code:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;API_ToolBoxItem elemType = {}; 
elemType.type.typeID = API_ObjectID; 
ACAPI_Element_CatchNewElement(&amp;amp;elemType, ElementEventHandler); 

// Other variants i tried: 

// API_ToolBoxItem elemType_Wall = { API_ObjectID, 0, 0 }; seen here: https://graphisoft.github.io/archicad-api-devkit/group___element.html#ga141f01f381503b52a3cf7af291390df0 

// nullptr -&amp;gt; this works, but i want to only get notified about new objects&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When i use this code and set a breakpoint at the beginning of the ElementEventHandler, it doesnt get triggered.&lt;BR /&gt;With nullptr instead of elemType it gets triggered (3x: 1. APINotifyElement_BeginEvents, 2. APINotifyElement_New, 3. APINotifyElement_EndEvents)&lt;BR /&gt;&lt;BR /&gt;Can someone help me with this?&lt;BR /&gt;&lt;BR /&gt;Looking forward to your responses.&lt;BR /&gt;Jonas&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:02:23 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598452#M9288</guid>
      <dc:creator>stahL</dc:creator>
      <dc:date>2024-09-17T09:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_CatchNewElement does not work with specified Type</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598523#M9290</link>
      <description>&lt;P&gt;I think you have to set the type subcategory. Try this (not tested)&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;API_ToolBoxItem elemType = {};
elemType.type.typeID = API_ObjectID;
elemType.type.variationID = APIVarId_Object;
ACAPI_Element_CatchNewElement(&amp;amp;elemType, ElementEventHandler);&lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 10 Apr 2024 06:16:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598523#M9290</guid>
      <dc:creator>kolioi</dc:creator>
      <dc:date>2024-04-10T06:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_CatchNewElement does not work with specified Type</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598530#M9291</link>
      <description>&lt;P&gt;I tried this as well an it didn't work.&lt;/P&gt;&lt;P&gt;But thank you for the suggestion!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Apr 2024 07:00:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/598530#M9291</guid>
      <dc:creator>stahL</dc:creator>
      <dc:date>2024-04-10T07:00:14Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_CatchNewElement does not work with specified Type</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/612971#M9577</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;With nullptr instead of elemType it gets triggered (3x: 1. APINotifyElement_BeginEvents, 2. APINotifyElement_New, 3. APINotifyElement_EndEvents)&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You already got the answer. You will always get 'APINotifyElement_BeginEvents' first and 'APINotifyElement_EndEvents' last for element event handlers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jun 2024 06:19:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-CatchNewElement-does-not-work-with-specified-Type/m-p/612971#M9577</guid>
      <dc:creator>Yohei Sekiguchi</dc:creator>
      <dc:date>2024-06-28T06:19:09Z</dc:date>
    </item>
  </channel>
</rss>

