<?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: Get element's extended data in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-element-s-extended-data/m-p/177978#M5961</link>
    <description>The element's extended datas are stored in elementmemos. &lt;BR /&gt;
So ACAPI_Element_GetMemo function is what are you looking for. &lt;BR /&gt;
 
&lt;PRE&gt;API_Element			element; 
API_ElementMemo		memo; 
GSErrCode			err = NoError; 
 
// after you have the element's guid: 
err = ACAPI_Element_GetMemo (element.header.guid, &amp;amp;memo);
// extended data will be in memo structure&lt;/PRE&gt;</description>
    <pubDate>Mon, 30 Jun 2014 10:34:27 GMT</pubDate>
    <dc:creator>Tibor Lorantfy</dc:creator>
    <dc:date>2014-06-30T10:34:27Z</dc:date>
    <item>
      <title>Get element's extended data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-element-s-extended-data/m-p/177977#M5960</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;
&lt;UL&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can get the element's default data by &lt;FONT color="#808080"&gt;ACAPI_Element_GetDefaults&lt;/FONT&gt; and its default extended data by &lt;FONT color="#808080"&gt;ACAPI_Element_GetDefaultsExt&lt;/FONT&gt;.&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can change the element's default data by &lt;FONT color="#808080"&gt;ACAPI_Element_ChangeDefaults&lt;/FONT&gt; and its default extended data by &lt;FONT color="#808080"&gt;ACAPI_Element_ChangeDefaultsExt&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can create an element by &lt;FONT color="#808080"&gt;ACAPI_Element_Create&lt;/FONT&gt; and with extended data by &lt;FONT color="#808080"&gt;ACAPI_Element_CreateExt&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can change the element's data by &lt;FONT color="#808080"&gt;ACAPI_Element_Change&lt;/FONT&gt; and its extended data by &lt;FONT color="#808080"&gt;ACAPI_Element_ChangeExt&lt;/FONT&gt;&lt;/LI&gt;
&lt;LI&gt;&amp;nbsp;&lt;/LI&gt;
&lt;LI&gt;You can get the element's data by &lt;FONT color="#808080"&gt;ACAPI_Element_Get&lt;/FONT&gt;&lt;/LI&gt;
&lt;/UL&gt;
How to I get the element's extended data? In my case, the detail marker extended data.&lt;BR /&gt;&lt;BR /&gt;I created one using &lt;FONT color="#808080"&gt;ACAPI_Element_CreateExt&lt;/FONT&gt; functions. The data I input was perfectly saved in the detail marker. But now I want to get it, I can't seem to find it since there is no corresponding &lt;FONT color="#808080"&gt;ACAPI_Element_GetExt&lt;/FONT&gt; function for it. I've tried using/getting the parameters using:&lt;BR /&gt;
&lt;PRE&gt;owner.libInd = 0;
owner.typeID = iElemHead.typeID;
owner.index = iElemHead.index;
ACAPI_Goodies(APIAny_OpenParametersID, &amp;amp;owner)&lt;/PRE&gt;
...but it returns 0x81060068 (&lt;FONT color="#808080"&gt;APIERR_BADPARS&lt;/FONT&gt;).&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;EDIT 1:&lt;/STRONG&gt;&lt;BR /&gt;BTW, am I right that the "Ext" stands for "extended [data]".&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 12:52:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-element-s-extended-data/m-p/177977#M5960</guid>
      <dc:creator>ReignBough</dc:creator>
      <dc:date>2023-08-01T12:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Get element's extended data</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/Get-element-s-extended-data/m-p/177978#M5961</link>
      <description>The element's extended datas are stored in elementmemos. &lt;BR /&gt;
So ACAPI_Element_GetMemo function is what are you looking for. &lt;BR /&gt;
 
&lt;PRE&gt;API_Element			element; 
API_ElementMemo		memo; 
GSErrCode			err = NoError; 
 
// after you have the element's guid: 
err = ACAPI_Element_GetMemo (element.header.guid, &amp;amp;memo);
// extended data will be in memo structure&lt;/PRE&gt;</description>
      <pubDate>Mon, 30 Jun 2014 10:34:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/Get-element-s-extended-data/m-p/177978#M5961</guid>
      <dc:creator>Tibor Lorantfy</dc:creator>
      <dc:date>2014-06-30T10:34:27Z</dc:date>
    </item>
  </channel>
</rss>

