<?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 Delete element problem in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Delete-element-problem/m-p/339874#M1501</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I use "ACAPI_Notify_CatchNewElement" to catch the modify of the element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ACAPI_Notify_CatchNewElement(nullptr, ElementEventHandlerProc);
ACAPI_Notify_InstallElementObserver(ElementEventHandlerProc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I delete the wall element,I can get the&amp;nbsp;"APINotifyElement_Delete" message.However, if I delete a wall which has intersaction with other element, I just can get the delete message but not a modify message which may occured on other elements.Here's the figure1 that I create two wall.and figure2 shows that i delete one of the wall but I can just catch the delete event,so the other wall remains a hole.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there some way that I can get the modify?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54886iE11FE4CC207A1D23/image-size/large?v=v2&amp;amp;px=999" border="0" alt="f1.png" title="f1.png" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54887iCCD792766BF54DF5/image-size/large?v=v2&amp;amp;px=999" border="0" alt="f2.png" title="f2.png" /&gt;</description>
    <pubDate>Tue, 31 May 2022 06:36:45 GMT</pubDate>
    <dc:creator>WalterWhite</dc:creator>
    <dc:date>2022-05-31T06:36:45Z</dc:date>
    <item>
      <title>Delete element problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Delete-element-problem/m-p/339874#M1501</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I use "ACAPI_Notify_CatchNewElement" to catch the modify of the element.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;ACAPI_Notify_CatchNewElement(nullptr, ElementEventHandlerProc);
ACAPI_Notify_InstallElementObserver(ElementEventHandlerProc);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I delete the wall element,I can get the&amp;nbsp;"APINotifyElement_Delete" message.However, if I delete a wall which has intersaction with other element, I just can get the delete message but not a modify message which may occured on other elements.Here's the figure1 that I create two wall.and figure2 shows that i delete one of the wall but I can just catch the delete event,so the other wall remains a hole.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So is there some way that I can get the modify?&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54886iE11FE4CC207A1D23/image-size/large?v=v2&amp;amp;px=999" border="0" alt="f1.png" title="f1.png" /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/54887iCCD792766BF54DF5/image-size/large?v=v2&amp;amp;px=999" border="0" alt="f2.png" title="f2.png" /&gt;</description>
      <pubDate>Tue, 31 May 2022 06:36:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Delete-element-problem/m-p/339874#M1501</guid>
      <dc:creator>WalterWhite</dc:creator>
      <dc:date>2022-05-31T06:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete element problem</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Delete-element-problem/m-p/340440#M1502</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I tried it and I also couldn't get a modify message.&lt;BR /&gt;Another thing I tried was getting the Wall Relation on the deleted Wall Element. (&lt;A href="https://archicadapi.Graphisoft.com/documentation/acapi_element_getrelations" target="_blank"&gt;https://archicadapi.Graphisoft.com/documentation/acapi_element_getrelations&lt;/A&gt;) Unfortunately this doesn't seem to work either, since I think the API considers the Wall already deleted when entering Handler with the delete notification. (Also doesn't work for ACAPI_Notify_GetParentElement).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The only thing that keeps working for me during the APINotifyElement_Delete notification are Element Links: &lt;A href="https://archicadapi.Graphisoft.com/documentation/acapi_element_getlinks?s=element%20links" target="_blank"&gt;https://archicadapi.Graphisoft.com/documentation/acapi_element_getlinks&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So if you have a way to create such links for those touching walls, than you can also query the links during the delete event.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jun 2022 09:44:45 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Delete-element-problem/m-p/340440#M1502</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2022-06-07T09:44:45Z</dc:date>
    </item>
  </channel>
</rss>

