<?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: How to access data on worksheets &amp;amp; Layouts? in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-access-data-on-worksheets-amp-Layouts/m-p/700852#M10860</link>
    <description>&lt;P&gt;Many API functions don't directly specify a target database, instead operating on what is designated as the 'current' database. You can change the current database by calling &lt;EM&gt;ACAPI_Database_ChangeCurrentDatabase&lt;/EM&gt;, but I strongly recommend capturing the current database first (with &lt;EM&gt;ACAPI_Database_GetCurrentDatabase&lt;/EM&gt;) and restoring it when finished (otherwise Archicad can behave strangely when the add-on returns control).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get a list of worksheet databases using&amp;nbsp;&lt;EM&gt;ACAPI_Database_GetWorksheetDatabases&lt;/EM&gt;. There are similar functions for other database types.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Apr 2026 09:06:36 GMT</pubDate>
    <dc:creator>Ralph Wessel</dc:creator>
    <dc:date>2026-04-27T09:06:36Z</dc:date>
    <item>
      <title>How to access data on worksheets &amp; Layouts?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-access-data-on-worksheets-amp-Layouts/m-p/700713#M10857</link>
      <description>&lt;P&gt;I want to be able to check the number of external drawings in a model. i.e DWGs/PDFs project teams have linked in.&lt;BR /&gt;&lt;BR /&gt;So far I am able to do that in the model space using:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;GS::&lt;SPAN&gt;Array&lt;/SPAN&gt;&amp;lt;&lt;SPAN&gt;API_Guid&lt;/SPAN&gt;&amp;gt; drawings;
ACAPI_Element_GetElemList(&lt;SPAN&gt;API_DrawingID&lt;/SPAN&gt;, &amp;amp;drawings);

&lt;SPAN&gt;for&lt;/SPAN&gt; (&lt;SPAN&gt;const&lt;/SPAN&gt; &lt;SPAN&gt;auto&lt;/SPAN&gt;&amp;amp; g : drawings)
	uniqueDrawings.Add(g);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, I want to check Worksheets &amp;amp; Layouts, but I cant find a way to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;BTW I'm very new to the Archicad API so might be missing something easy here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be most appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="grey"&gt;Operating system used: &lt;EM&gt;Windows 11.26100.8037&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Apr 2026 09:50:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-access-data-on-worksheets-amp-Layouts/m-p/700713#M10857</guid>
      <dc:creator>UpperCapybara36</dc:creator>
      <dc:date>2026-04-24T09:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to access data on worksheets &amp; Layouts?</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-access-data-on-worksheets-amp-Layouts/m-p/700852#M10860</link>
      <description>&lt;P&gt;Many API functions don't directly specify a target database, instead operating on what is designated as the 'current' database. You can change the current database by calling &lt;EM&gt;ACAPI_Database_ChangeCurrentDatabase&lt;/EM&gt;, but I strongly recommend capturing the current database first (with &lt;EM&gt;ACAPI_Database_GetCurrentDatabase&lt;/EM&gt;) and restoring it when finished (otherwise Archicad can behave strangely when the add-on returns control).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can get a list of worksheet databases using&amp;nbsp;&lt;EM&gt;ACAPI_Database_GetWorksheetDatabases&lt;/EM&gt;. There are similar functions for other database types.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Apr 2026 09:06:36 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-access-data-on-worksheets-amp-Layouts/m-p/700852#M10860</guid>
      <dc:creator>Ralph Wessel</dc:creator>
      <dc:date>2026-04-27T09:06:36Z</dc:date>
    </item>
  </channel>
</rss>

