<?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 ChangeDefaultsHandler function example clearification needed in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ChangeDefaultsHandler-function-example-clearification-needed/m-p/371953#M1415</link>
    <description>&lt;P&gt;Hi, in this (ChangeDefaultsHandler) example here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/documentation/acapi_notify_catchchangedefaults" target="_blank"&gt;https://archicadapi.graphisoft.com/documentation/acapi_notify_catchchangedefaults&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is (&lt;SPAN&gt;GetElementTypeString) refrencing to? does this function exist anymore?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 02 Mar 2023 08:46:27 GMT</pubDate>
    <dc:creator>A101</dc:creator>
    <dc:date>2023-03-02T08:46:27Z</dc:date>
    <item>
      <title>ChangeDefaultsHandler function example clearification needed</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ChangeDefaultsHandler-function-example-clearification-needed/m-p/371953#M1415</link>
      <description>&lt;P&gt;Hi, in this (ChangeDefaultsHandler) example here:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://archicadapi.graphisoft.com/documentation/acapi_notify_catchchangedefaults" target="_blank"&gt;https://archicadapi.graphisoft.com/documentation/acapi_notify_catchchangedefaults&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;what is (&lt;SPAN&gt;GetElementTypeString) refrencing to? does this function exist anymore?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Mar 2023 08:46:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ChangeDefaultsHandler-function-example-clearification-needed/m-p/371953#M1415</guid>
      <dc:creator>A101</dc:creator>
      <dc:date>2023-03-02T08:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: ChangeDefaultsHandler function example clearification needed</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ChangeDefaultsHandler-function-example-clearification-needed/m-p/372158#M1416</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;From the name and signature it seems to give a string corresponding to the element type. So e.g. Giving it "API_DoorID" would return a string similar to: "Door".&lt;BR /&gt;&lt;BR /&gt;Indeed you can find an implementation in the "Notification_Manager" example in the SDK.&lt;BR /&gt;Here is the code from the AC26 SDK:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;bool GetElementTypeString (const API_ElemType&amp;amp; type, char *elemStr)
{
  GS::UniString ustr;
  GSErrCode err = ACAPI_Goodies_GetElemTypeName (type, ustr);
  if (err == NoError) {
    CHTruncate (ustr.ToCStr (), elemStr, ELEMSTR_LEN - 1);
    return true;
  }
  return false;
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Mar 2023 14:20:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ChangeDefaultsHandler-function-example-clearification-needed/m-p/372158#M1416</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2023-03-03T14:20:36Z</dc:date>
    </item>
  </channel>
</rss>

