<?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: I have problem in upgrade AC26 to AC28 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/658447#M10245</link>
    <description>&lt;P&gt;Hi, I'd suggest you to check the API Example code (IFC_Test/IFCAPI_Test.cpp), which using GetIFCType().&lt;/P&gt;
&lt;P&gt;Yes, you can use&amp;nbsp;&lt;SPAN&gt;ToInt32_Deprecated() to have short value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 07 Apr 2025 02:15:42 GMT</pubDate>
    <dc:creator>Hiromichi Shinkawa</dc:creator>
    <dc:date>2025-04-07T02:15:42Z</dc:date>
    <item>
      <title>I have problem in upgrade AC26 to AC28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/657484#M10234</link>
      <description>&lt;P&gt;I try to upgrade my addon AC26 to AC28.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can't find 'ACAPI_Element_GetIFCType' and 'ACAPI_IFC_APIGuidToIFCGuid'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I change objects's parameter, I was change material index with short.&lt;BR /&gt;But in AC28, index change to API_AttributeIndex.&lt;/P&gt;&lt;P&gt;How to change API_Attribute to short?&amp;nbsp;ToInt32_Deprecated is this right?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Mar 2025 10:02:39 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/657484#M10234</guid>
      <dc:creator>YONGWOO KIM</dc:creator>
      <dc:date>2025-03-28T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem in upgrade AC26 to AC28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/658447#M10245</link>
      <description>&lt;P&gt;Hi, I'd suggest you to check the API Example code (IFC_Test/IFCAPI_Test.cpp), which using GetIFCType().&lt;/P&gt;
&lt;P&gt;Yes, you can use&amp;nbsp;&lt;SPAN&gt;ToInt32_Deprecated() to have short value.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;HTH.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Apr 2025 02:15:42 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/658447#M10245</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2025-04-07T02:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem in upgrade AC26 to AC28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/658729#M10251</link>
      <description>&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I find the way to get IFC type and global ID.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it throws an access violation error. (0xC0000005: 0xFFFFFFFFFFFFFFFF )&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It looks like it's an error that occurs when freeing externalGlobalId.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="cpp"&gt;for (int i = 0; i &amp;lt; selList.GetSize(); i++)
{
	UniString ifcType = L"", ifcIdStr = L"";

	API_Elem_Head elemHead;
	elemHead.guid = selList[i].GetGuid();
	ACAPI_Element_GetHeader(&amp;amp;elemHead);
	auto objectID = IFCAPI::GetObjectAccessor().CreateElementObjectID(elemHead);
	auto ifcTypeResult = IFCAPI::GetObjectAccessor().GetIFCType(objectID.Unwrap());
	if (ifcTypeResult.IsOk())
		ifcType = ifcTypeResult.Unwrap();

	auto externalGlobalId(IFCAPI::GetObjectAccessor().GetExternalGlobalId(objectID.Unwrap()));
	if (externalGlobalId.IsOk())
	{
		ifcIdStr = externalGlobalId.Unwrap();
	}
	else
	{
		auto globalId = IFCAPI::GetObjectAccessor().GetGlobalId(objectID.Unwrap());
		if (globalId.IsOk())
			ifcIdStr = globalId.Unwrap();
	}
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 21:57:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/658729#M10251</guid>
      <dc:creator>YONGWOO KIM</dc:creator>
      <dc:date>2025-05-23T21:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: I have problem in upgrade AC26 to AC28</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/663430#M10387</link>
      <description>&lt;P&gt;This should be basically the same issue as in:&amp;nbsp;&lt;A href="https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/td-p/658915" target="_blank"&gt;https://community.graphisoft.com/t5/Archicad-C-API/I-have-a-problem-when-I-release-ExternalGlobalId/td-p/658915&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Please do try to work with Release builds until we can find out what causes this in Debug.&lt;BR /&gt;&lt;BR /&gt;Unfortunately we dont see the actual problem at the moment, but it is very general and not specific to IFC related API.&lt;/P&gt;</description>
      <pubDate>Fri, 23 May 2025 06:44:18 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/I-have-problem-in-upgrade-AC26-to-AC28/m-p/663430#M10387</guid>
      <dc:creator>Zoltan Vale</dc:creator>
      <dc:date>2025-05-23T06:44:18Z</dc:date>
    </item>
  </channel>
</rss>

