<?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: ACAPI_GetPreferences how to get its data? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387660#M977</link>
    <description>&lt;P&gt;Hello Joel,&lt;/P&gt;&lt;P&gt;I already set the preference data according to its suggestion doc but still can't retrieve it back since the last parameter of get API is GSPtr which do not know how to convert it readable character. Do you have any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 16 Jul 2023 01:51:32 GMT</pubDate>
    <dc:creator>Newbie</dc:creator>
    <dc:date>2023-07-16T01:51:32Z</dc:date>
    <item>
      <title>ACAPI_GetPreferences how to get its data?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387584#M975</link>
      <description>&lt;P&gt;I am stuck on getting return data of the above function with below sample code;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;Int32 version;
GSSize nBytes;
GSPtr pref;
ACAPI_GetPreferences (&amp;amp;version, &amp;amp;nBytes, nullptr);
if (version == MY_PREFERENCES_VERSION) {
pref = BMAllocatePtr (nBytes, ALLOCATE_CLEAR, 0);
if (pref != nullptr) {
ACAPI_GetPreferences (&amp;amp;version, &amp;amp;nBytes, pref);
// do something with the preferences data
BMKillPtr (&amp;amp;pref); // dispose allocated pointer
}
};&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Is there anyone know how to convert "pref" to readable text?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2023 03:03:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387584#M975</guid>
      <dc:creator>Newbie</dc:creator>
      <dc:date>2023-07-18T03:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_GetPreferences how to get its data?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387650#M976</link>
      <description>&lt;P&gt;Short Question: Did you fill in your Data before? That function is for storing your own data, with your own datastructure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelBuehler_0-1689453014702.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/40350i755E1C9DD2F6F95B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelBuehler_0-1689453014702.png" alt="JoelBuehler_0-1689453014702.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Jul 2023 20:30:29 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387650#M976</guid>
      <dc:creator>Joel Buehler</dc:creator>
      <dc:date>2023-07-15T20:30:29Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_GetPreferences how to get its data?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387660#M977</link>
      <description>&lt;P&gt;Hello Joel,&lt;/P&gt;&lt;P&gt;I already set the preference data according to its suggestion doc but still can't retrieve it back since the last parameter of get API is GSPtr which do not know how to convert it readable character. Do you have any idea?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 01:51:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387660#M977</guid>
      <dc:creator>Newbie</dc:creator>
      <dc:date>2023-07-16T01:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_GetPreferences how to get its data?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387665#M978</link>
      <description>&lt;P&gt;Here you can find a detailed explanation of preferences handling:&lt;/P&gt;&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/archicad-maze-generator-add-on-tutorial-part-3" target="_blank"&gt;https://archicadapi.graphisoft.com/archicad-maze-generator-add-on-tutorial-part-3&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 16 Jul 2023 06:26:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-GetPreferences-how-to-get-its-data/m-p/387665#M978</guid>
      <dc:creator>kovacsv</dc:creator>
      <dc:date>2023-07-16T06:26:48Z</dc:date>
    </item>
  </channel>
</rss>

