<?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 Creating elevation marker and APIERR_BADID [SOLVED] in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-elevation-marker-and-APIERR-BADID-SOLVED/m-p/238783#M4969</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;I created an elevation marker using &lt;FONT color="#808080"&gt;ACAPI_Element_CreateExt&lt;/FONT&gt;. At first it returns &lt;FONT color="#808080"&gt;APIERR_PADPARS&lt;/FONT&gt;. But when I changed the marker type to "Built-in Elevation Marker", it returns an &lt;FONT color="#808080"&gt;APIERR_BADID&lt;/FONT&gt;. When I debugged the add-on, it passed the element type (&lt;FONT color="#808080"&gt;API_ElevationID&lt;/FONT&gt;) check and the marker type check. It fails after the marker type check (I don't know what ID it is checking after that).&lt;BR /&gt;&lt;BR /&gt;I also traced that the API is comparing some structure value of 0x40 to 2 which causes it to return the &lt;FONT color="#808080"&gt;APIERR_BADID&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 03)&lt;BR /&gt;When I tried it on different model, the elevation marker was created with no error. This makes me think that the 0x40 check has something to do with the model itself and not the created elevation marker. Also, I can create elevation marker manually on both model with no error.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 04)&lt;BR /&gt;I found out that it is not the 0x40 check that causing it. I continue on my tracing and found that there is an &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;elevation class with bool/char value at offset 0x0A30 equal to 1. (I called it this way because of the 'ELEV' that can be seen somewhere at the 'header' of the binary data.) When I modify this binary value to 0, I was able to create an elevation marker. I am not sure what this value is and how to correct this in my model.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 07)&lt;BR /&gt;I found that this 0x0A30 is the 'with Marker reference to' value.&lt;/DIV&gt;</description>
    <pubDate>Thu, 13 Jul 2023 12:47:22 GMT</pubDate>
    <dc:creator>ReignBough</dc:creator>
    <dc:date>2023-07-13T12:47:22Z</dc:date>
    <item>
      <title>Creating elevation marker and APIERR_BADID [SOLVED]</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Creating-elevation-marker-and-APIERR-BADID-SOLVED/m-p/238783#M4969</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;I created an elevation marker using &lt;FONT color="#808080"&gt;ACAPI_Element_CreateExt&lt;/FONT&gt;. At first it returns &lt;FONT color="#808080"&gt;APIERR_PADPARS&lt;/FONT&gt;. But when I changed the marker type to "Built-in Elevation Marker", it returns an &lt;FONT color="#808080"&gt;APIERR_BADID&lt;/FONT&gt;. When I debugged the add-on, it passed the element type (&lt;FONT color="#808080"&gt;API_ElevationID&lt;/FONT&gt;) check and the marker type check. It fails after the marker type check (I don't know what ID it is checking after that).&lt;BR /&gt;&lt;BR /&gt;I also traced that the API is comparing some structure value of 0x40 to 2 which causes it to return the &lt;FONT color="#808080"&gt;APIERR_BADID&lt;/FONT&gt;.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 03)&lt;BR /&gt;When I tried it on different model, the elevation marker was created with no error. This makes me think that the 0x40 check has something to do with the model itself and not the created elevation marker. Also, I can create elevation marker manually on both model with no error.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 04)&lt;BR /&gt;I found out that it is not the 0x40 check that causing it. I continue on my tracing and found that there is an &lt;I&gt;&lt;/I&gt;&lt;S&gt;&lt;I&gt;&lt;I&gt;&lt;/I&gt;&lt;/I&gt;&lt;/S&gt;elevation class with bool/char value at offset 0x0A30 equal to 1. (I called it this way because of the 'ELEV' that can be seen somewhere at the 'header' of the binary data.) When I modify this binary value to 0, I was able to create an elevation marker. I am not sure what this value is and how to correct this in my model.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt; (2015 Dec 07)&lt;BR /&gt;I found that this 0x0A30 is the 'with Marker reference to' value.&lt;/DIV&gt;</description>
      <pubDate>Thu, 13 Jul 2023 12:47:22 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Creating-elevation-marker-and-APIERR-BADID-SOLVED/m-p/238783#M4969</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-07-13T12:47:22Z</dc:date>
    </item>
  </channel>
</rss>

