<?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 ACAPI_Element_Delete issue in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Delete-issue/m-p/212542#M6088</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).&lt;BR /&gt;&lt;BR /&gt;In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :&lt;BR /&gt;"currentElement = &amp;amp;element;"&lt;BR /&gt;&lt;BR /&gt;I then try to use the "ACAPI_Element_Delete" function :&lt;BR /&gt;"ACAPI_Element_Delete(*currentElement-&amp;gt;header, 1);"&lt;BR /&gt;&lt;BR /&gt;But i've got C2100 error : illegal indirection.&lt;BR /&gt;&lt;BR /&gt;Do you see where is my mistake ?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;/DIV&gt;</description>
    <pubDate>Thu, 03 Aug 2023 08:55:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2023-08-03T08:55:33Z</dc:date>
    <item>
      <title>ACAPI_Element_Delete issue</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Delete-issue/m-p/212542#M6088</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hello,&lt;BR /&gt;i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).&lt;BR /&gt;&lt;BR /&gt;In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :&lt;BR /&gt;"currentElement = &amp;amp;element;"&lt;BR /&gt;&lt;BR /&gt;I then try to use the "ACAPI_Element_Delete" function :&lt;BR /&gt;"ACAPI_Element_Delete(*currentElement-&amp;gt;header, 1);"&lt;BR /&gt;&lt;BR /&gt;But i've got C2100 error : illegal indirection.&lt;BR /&gt;&lt;BR /&gt;Do you see where is my mistake ?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot.&lt;/DIV&gt;</description>
      <pubDate>Thu, 03 Aug 2023 08:55:33 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Delete-issue/m-p/212542#M6088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-03T08:55:33Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_Element_Delete issue</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Delete-issue/m-p/212543#M6089</link>
      <description>&lt;BLOCKQUOTE&gt;atila-diffusion wrote:&lt;BR /&gt;i'm trying to use the ACAPI_Element_Delete function which requires an "ACAPI_Elem_Head **" value as first parameter in order to delete the right element (as written in the Database Overview).&lt;BR /&gt;
In my code, i first set the variable "API_Element *currentElement;" which contains my element's adress :&lt;BR /&gt;
"currentElement = &amp;amp;element;"&lt;BR /&gt;
I then try to use the "ACAPI_Element_Delete" function :&lt;BR /&gt;
"ACAPI_Element_Delete(*currentElement-&amp;gt;header, 1);"&lt;/BLOCKQUOTE&gt;
You're trying to dereference a variable that isn't a pointer, i.e. currentElement-&amp;gt;header is a ACAPI_Elem_Head structure (not a pointer to one). Even if it was, you need to provide a pointer to a pointer (a handle) to the data. Try something like this:&lt;PRE&gt;API_Elem_Head* head = &amp;amp;element.header;
GSErrCode err = ACAPI_Element_Delete(&amp;amp;head, 1);&lt;/PRE&gt;</description>
      <pubDate>Wed, 06 Oct 2010 13:54:14 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-Element-Delete-issue/m-p/212543#M6089</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2010-10-06T13:54:14Z</dc:date>
    </item>
  </channel>
</rss>

