<?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: Suspend Groups in Element Observers / ElementEventHandlerProc in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/398319#M8594</link>
    <description>&lt;P&gt;I got an answer from Support a while ago about this and I just remembered to share it here as well.&lt;BR /&gt;&lt;BR /&gt;To summarize:&lt;BR /&gt;They also think it's weird too, that the suspending groups doesn't work in the case of changing the zone polygon.&lt;BR /&gt;They will look into it but can't promise anything right now since they have a lot of other developments going on.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Sep 2023 06:46:36 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2023-09-15T06:46:36Z</dc:date>
    <item>
      <title>Suspend Groups in Element Observers / ElementEventHandlerProc</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382023#M862</link>
      <description>&lt;P&gt;Is it possible to suspend groups in Element Observers / ElementEventHandlerProc?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I try to use &lt;A href="https://archicadapi.graphisoft.com/documentation/acapi_element_tool" target="_self"&gt;ACAPI_Element_Tool&lt;/A&gt; with APITool_SuspendGroups I get&amp;nbsp; &lt;CODE&gt;APIERR_REFUSEDCMD&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;I use it like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;err = ACAPI_Element_Tool ({}, APITool_SuspendGroups, nullptr);
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Other values in the first parameter give the same error.&lt;BR /&gt;I've also tried ungrouping and after the operation grouping an element to achieve a similar effect, but the group/ungroup command needs an undo scope.&lt;BR /&gt;&lt;BR /&gt;Both approaches work for me outside of an event handler.&lt;BR /&gt;&lt;BR /&gt;Are there any other workarounds or am I using one of the commands wrong in the EventHandler context?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Jun 2023 12:51:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382023#M862</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-06-01T12:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Suspend Groups in Element Observers / ElementEventHandlerProc</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382149#M863</link>
      <description>&lt;P&gt;Why do you need to ungroup elements? Perhaps it is enough to exclude the processing of groups?&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;if (elemType-&amp;gt;elemHead.typeID == API_GroupID) return NoError;&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 02 Jun 2023 09:43:34 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382149#M863</guid>
      <dc:creator>kuvbur</dc:creator>
      <dc:date>2023-06-02T09:43:34Z</dc:date>
    </item>
    <item>
      <title>Re: Suspend Groups in Element Observers / ElementEventHandlerProc</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382151#M864</link>
      <description>&lt;P&gt;That won't work unfortunately. I want to change an element&amp;nbsp; with &lt;A href="https://archicadapi.graphisoft.com/documentation/acapi_element_change?s=ACAPI_Element_Change" target="_blank"&gt;ACAPI_Element_Change&lt;/A&gt; but this requires the Element to not be in a group or suspend groups to be off (see APIERR_BADPARS in the link).&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2023 10:36:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/382151#M864</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-06-02T10:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Suspend Groups in Element Observers / ElementEventHandlerProc</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/385629#M865</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I’ve figured out that this actually isn’t the case for all events!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;These are the cases I've found:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;TABLE data-number-column="false"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH colspan="1" rowspan="1" width="183px" data-colwidth="103"&gt;
&lt;P data-renderer-start-pos="188"&gt;&lt;STRONG data-renderer-mark="true"&gt;Action&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH colspan="1" rowspan="1" width="217px" data-colwidth="189"&gt;
&lt;P data-renderer-start-pos="198"&gt;&lt;STRONG data-renderer-mark="true"&gt;API_ElementDBEventID&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;TH colspan="1" rowspan="1" width="210px" data-colwidth="-199"&gt;
&lt;P data-renderer-start-pos="222"&gt;&lt;STRONG data-renderer-mark="true"&gt;Suspend Groups Works&lt;/STRONG&gt;&lt;/P&gt;
&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="1" rowspan="1" width="183px" data-colwidth="103"&gt;
&lt;P data-renderer-start-pos="248"&gt;Change Zone Polygon&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="217px" data-colwidth="189"&gt;
&lt;P data-renderer-start-pos="272"&gt;APINotifyElement_Edit&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="210px" data-colwidth="-199"&gt;
&lt;P data-renderer-start-pos="297"&gt;False&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="1" rowspan="1" width="183px" data-colwidth="103"&gt;
&lt;P data-renderer-start-pos="308"&gt;Move Zone&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="217px" data-colwidth="189"&gt;
&lt;P data-renderer-start-pos="321"&gt;APINotifyElement_Edit&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="210px" data-colwidth="-199"&gt;
&lt;P data-renderer-start-pos="346"&gt;True&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD colspan="1" rowspan="1" width="183px" data-colwidth="103"&gt;
&lt;P data-renderer-start-pos="356"&gt;Change Zone Parameter&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="217px" data-colwidth="189"&gt;
&lt;P data-renderer-start-pos="381"&gt;APINotifyElement_Change&lt;/P&gt;
&lt;/TD&gt;
&lt;TD colspan="1" rowspan="1" width="210px" data-colwidth="-199"&gt;
&lt;P data-renderer-start-pos="408"&gt;True&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;So maybe it’s a bug when changing the zone shape?&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I sent a ticket about it to support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jun 2023 13:44:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/385629#M865</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-06-28T13:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Suspend Groups in Element Observers / ElementEventHandlerProc</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/398319#M8594</link>
      <description>&lt;P&gt;I got an answer from Support a while ago about this and I just remembered to share it here as well.&lt;BR /&gt;&lt;BR /&gt;To summarize:&lt;BR /&gt;They also think it's weird too, that the suspending groups doesn't work in the case of changing the zone polygon.&lt;BR /&gt;They will look into it but can't promise anything right now since they have a lot of other developments going on.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Sep 2023 06:46:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Suspend-Groups-in-Element-Observers-ElementEventHandlerProc/m-p/398319#M8594</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-09-15T06:46:36Z</dc:date>
    </item>
  </channel>
</rss>

