<?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 ACAPI_LibraryPart_GetSection return value from ArchiCAD 27 in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-GetSection-return-value-from-ArchiCAD-27/m-p/641803#M10015</link>
    <description>&lt;P&gt;From ArchiCAD 27 the&amp;nbsp;ACAPI_LibPart_GetSection function has been replaced by the&amp;nbsp;ACAPI_LibraryPart_GetSection one. Till ArchiCAD 26 when I try to get data from an empty '2DDR' (&lt;/P&gt;&lt;P&gt;API_Sect2DDraw) section using the&amp;nbsp;ACAPI_LibPart_GetSection function I obtained an&amp;nbsp;APIERR_NOLIBSECT error. From ArchiCAD 27 (and also on ArchiCAD 28) the result of the ACAPI_LibraryPart_GetSection function call is NoError. Is there a way to understand that the section doesn't exist?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Silvia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/80264i09F49C47717F95ED/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2.png" title="2.png" /&gt;</description>
    <pubDate>Sat, 30 Nov 2024 17:22:27 GMT</pubDate>
    <dc:creator>Fermat</dc:creator>
    <dc:date>2024-11-30T17:22:27Z</dc:date>
    <item>
      <title>ACAPI_LibraryPart_GetSection return value from ArchiCAD 27</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-GetSection-return-value-from-ArchiCAD-27/m-p/641803#M10015</link>
      <description>&lt;P&gt;From ArchiCAD 27 the&amp;nbsp;ACAPI_LibPart_GetSection function has been replaced by the&amp;nbsp;ACAPI_LibraryPart_GetSection one. Till ArchiCAD 26 when I try to get data from an empty '2DDR' (&lt;/P&gt;&lt;P&gt;API_Sect2DDraw) section using the&amp;nbsp;ACAPI_LibPart_GetSection function I obtained an&amp;nbsp;APIERR_NOLIBSECT error. From ArchiCAD 27 (and also on ArchiCAD 28) the result of the ACAPI_LibraryPart_GetSection function call is NoError. Is there a way to understand that the section doesn't exist?&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Silvia&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/80264i09F49C47717F95ED/image-size/large?v=v2&amp;amp;px=999" border="0" alt="2.png" title="2.png" /&gt;</description>
      <pubDate>Sat, 30 Nov 2024 17:22:27 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-GetSection-return-value-from-ArchiCAD-27/m-p/641803#M10015</guid>
      <dc:creator>Fermat</dc:creator>
      <dc:date>2024-11-30T17:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: ACAPI_LibraryPart_GetSection return value from ArchiCAD 27</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-GetSection-return-value-from-ArchiCAD-27/m-p/644507#M10052</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I'd suggest you to check the section handle if you cannot get error code. By the way, I've checked AC28 (build 3110), it returns APIERR_NOLIBSECT in case of empty section.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;	section.sectType = API_Sect2DDraw;

	GSHandle	sectionHdl;
	err = ACAPI_LibraryPart_GetSection(libPart.index, &amp;amp;section, &amp;amp;sectionHdl, &amp;amp;sectionStr);

	if (sectionHdl == nullptr) {
		ACAPI_WriteReport("Section is empty!", false);
	}
&lt;/LI-CODE&gt;
&lt;P&gt;HTH.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Dec 2024 01:52:10 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/ACAPI-LibraryPart-GetSection-return-value-from-ArchiCAD-27/m-p/644507#M10052</guid>
      <dc:creator>Hiromichi Shinkawa</dc:creator>
      <dc:date>2024-12-24T01:52:10Z</dc:date>
    </item>
  </channel>
</rss>

