<?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: [Tip] Export layer combination data in Collaboration with other software</title>
    <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6324#M397</link>
    <description>&lt;BLOCKQUOTE&gt;Eric wrote:&lt;BR /&gt;Fantastic!&lt;BR /&gt;
&lt;BR /&gt;
Thanks Karl!&lt;BR /&gt;
&lt;BR /&gt;
BTW, Is there any way to query this data directly from MS Access or another DB program so that changes to the layer list can automatically be updated in reports?&lt;/BLOCKQUOTE&gt;

You're welcome. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
The GS ODBC driver, available by registering as a developer last time I looked, should in principal allow the query to be made directly from Access.   Thus, the report would always be up-to-date... and formatted the way you want to boot.  I have had mixed results with this ODBC driver to date, but it is good to know that GS is working on it!&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
    <pubDate>Fri, 23 Jan 2004 23:15:12 GMT</pubDate>
    <dc:creator>Karl Ottenstein</dc:creator>
    <dc:date>2004-01-23T23:15:12Z</dc:date>
    <item>
      <title>[Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6322#M395</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;&lt;R&gt;Someone asked me privately if there was a way to extract all of the layer settings for every layer combination in order to document all of the layer combos in an external program such as Excel or Access.&lt;BR /&gt;
&lt;BR /&gt;
I talked about a method to do this briefly over a year ago when 8.0 first came out.&lt;BR /&gt;
&lt;BR /&gt;
First, you must enable SQL in the Calculate menu - it is disabled by default.  Open Preferences and for "Calculate menu appearance" choose "Full with SQL".  You'll now have a new menu option as shown in the attached screenshot.  Choosing 'Show Data Structure...' displays all of the tables and fields that can be viewed (I'm hoping there are more that are undocumented).&lt;BR /&gt;
&lt;BR /&gt;
Choose Query and paste in the following:&lt;BR /&gt;

&lt;PRE&gt;SELECT FLC.NAME AS COMBINATION, LAYERS.NAME AS LAYER_NAME,
LAYERS.LOCKED, LAYERS.VISIBLE
FROM FLAT (LAYERCOMBINATIONS, LAYER_STATUS) AS FLC
INNER JOIN LAYERS ON (FLC.LAYER_STATUS.LAYER_ID = LAYERS.ID)
ORDER BY FLC.NAME, LAYERS.NAME&lt;/PRE&gt;

then click the Execute button.  The result will appear in your web browser as an alphabetized table.  You can save the HTML and/or paste it into Excel, etc. for further manipulation to achieve your documentation goals.&lt;BR /&gt;
&lt;BR /&gt;
The critical part of the code above is thanks to Akos Pfemeter who in 2002 explained the key part of getting the JOIN to work via FLAT.&lt;BR /&gt;
&lt;BR /&gt;
Note that this displays the visible and locked status of every layer for every layer combination, something not possible via Attribute Manager's Print to File command.  However, it does not display layer intersection priority numbers or wireframe display status - neither of these fields is documented, but I'm hoping that they are implemented and we just need someone from GS to tell us what they are.&lt;BR /&gt;
&lt;BR /&gt;
Karl&lt;/R&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/72876i5B289399231C604E/image-size/large?v=v2&amp;amp;px=999" border="0" alt="SQL-Layer-List.png" title="SQL-Layer-List.png" /&gt;</description>
      <pubDate>Fri, 23 Jan 2004 06:09:09 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6322#M395</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-01-23T06:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6323#M396</link>
      <description>Fantastic!&lt;BR /&gt;
&lt;BR /&gt;
Thanks Karl!&lt;BR /&gt;
&lt;BR /&gt;
BTW, Is there any way to query this data directly from MS Access or another DB program so that changes to the layer list can automatically be updated in reports?</description>
      <pubDate>Fri, 23 Jan 2004 18:00:38 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6323#M396</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-01-23T18:00:38Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6324#M397</link>
      <description>&lt;BLOCKQUOTE&gt;Eric wrote:&lt;BR /&gt;Fantastic!&lt;BR /&gt;
&lt;BR /&gt;
Thanks Karl!&lt;BR /&gt;
&lt;BR /&gt;
BTW, Is there any way to query this data directly from MS Access or another DB program so that changes to the layer list can automatically be updated in reports?&lt;/BLOCKQUOTE&gt;

You're welcome. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
The GS ODBC driver, available by registering as a developer last time I looked, should in principal allow the query to be made directly from Access.   Thus, the report would always be up-to-date... and formatted the way you want to boot.  I have had mixed results with this ODBC driver to date, but it is good to know that GS is working on it!&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Fri, 23 Jan 2004 23:15:12 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6324#M397</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2004-01-23T23:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6325#M398</link>
      <description>Now, the question is why doesn't this work on the Mac version. I repeated the same process and when I click "execute" nothing happens.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?</description>
      <pubDate>Sat, 24 Jan 2004 15:33:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6325#M398</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2004-01-24T15:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6326#M399</link>
      <description>&lt;BLOCKQUOTE&gt;Eric wrote:&lt;BR /&gt;Now, the question is why doesn't this work on the Mac version. I repeated the same process and when I click "execute" nothing happens.&lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;/BLOCKQUOTE&gt;

Well, nobody has responded in a year, and Frank Beister reminded me of this message...&lt;BR /&gt;
&lt;BR /&gt;
Since I now have a Mac to test on, I see that there is a bug in the SQL functionality on the Mac.   I don't know the full extent, but for me (AC 9 build 1812), doing just a SELECT * FROM LAYERS does nothing on the Mac, but a SELECT * FROM PENS works.  I'll report this.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Wed, 05 Jan 2005 18:54:59 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6326#M399</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2005-01-05T18:54:59Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6327#M400</link>
      <description>(AC 9 build 1812 usa full)&lt;BR /&gt;
&lt;BR /&gt;
I am new to ArchiCAD.  I'm trying to find out more about using the SQL and ODBC features.&lt;BR /&gt;
&lt;BR /&gt;
The menu screen that you've shown in the first post of this topic is not part of the prefs in my version.  I guess things have changed.  Can someone point me at some more recent documentation about using the SQL features.&lt;BR /&gt;
&lt;BR /&gt;
My head is spinning with trying to learn advanced features on my third day, but I think im in the right direction.  If I can get some answers, I hope to post frequently in this section.</description>
      <pubDate>Fri, 04 Feb 2005 19:52:07 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6327#M400</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-04T19:52:07Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6328#M401</link>
      <description>If you are using the US version of ArchiCAD please see this thread &lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=5520" target="_blank"&gt;&lt;/A&gt;&lt;S&gt;&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?t=5520" target="_blank"&gt;&lt;/A&gt;&lt;A href="&amp;lt;/s&amp;gt;&amp;lt;LINK_TEXT text=&amp;quot;http://archicad-talk.graphisoft.com/vie ... php?t=5520&amp;quot;&amp;gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=5520&amp;lt;/LINK_TEXT&amp;gt;&amp;lt;e&amp;gt;"&gt;&lt;/A&gt;&lt;/S&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... php?t=5520"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?t=5520&lt;/LINK_TEXT&gt;&lt;E&gt;&lt;/E&gt; about changing your WE to get all of the options to show in ArchiCAD.&lt;BR /&gt;
&lt;BR /&gt;
I could show you but the SWE version of ArchiCAD, based on the INT version, the We options are different, although producing the same results.&lt;BR /&gt;
&lt;BR /&gt;
HTH.&lt;BR /&gt;
Cheers.&lt;BR /&gt;
Ben</description>
      <pubDate>Fri, 04 Feb 2005 20:32:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6328#M401</guid>
      <dc:creator>Ben Odonnell</dc:creator>
      <dc:date>2005-02-04T20:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6329#M402</link>
      <description>&lt;BLOCKQUOTE&gt;PotentialTech wrote:&lt;BR /&gt;(AC 9 build 1812 usa full)&lt;BR /&gt;
&lt;BR /&gt;
I am new to ArchiCAD.  I'm trying to find out more about using the SQL and ODBC features.&lt;BR /&gt;
&lt;BR /&gt;
The menu screen that you've shown in the first post of this topic is not part of the prefs in my version.  I guess things have changed.  Can someone point me at some more recent documentation about using the SQL features.&lt;BR /&gt;
&lt;BR /&gt;
My head is spinning with trying to learn advanced features on my third day, but I think im in the right direction.  If I can get some answers, I hope to post frequently in this section.&lt;/BLOCKQUOTE&gt;

As Ben notes, the menu items are not added via the Work Environment... you'll find the two SQL commands available for dragging onto your customized Calculate menu.&lt;BR /&gt;
&lt;BR /&gt;
By the way, ODBC is pretty stable compared to my note of a year ago, below.   Be sure to look at the table design to see what each table really contains, as the contents do not necessarily match the (out of date) documentation.&lt;BR /&gt;
&lt;BR /&gt;
The ODBC documentation contains the definition of the Graphisoft version of SQL.  It is a download from the developer area of the GS web site.&lt;BR /&gt;
&lt;BR /&gt;
Both ODBC and SQL are one-way streets (read-only).  For 2-way interaction with ArchiCAD data, one needs to use the API.&lt;BR /&gt;
&lt;BR /&gt;
All of these things are pretty deep for a guy 3 days into the product, so I assume that you're a database programmer and not an architect? &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Mon, 07 Feb 2005 23:01:32 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6329#M402</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2005-02-07T23:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6330#M403</link>
      <description>Now I see... &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_eek.gif" style="display : inline;" /&gt;   &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_smile.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
The full featured menu is much more agreeable.  I'll get the hang of this yet.&lt;BR /&gt;
&lt;BR /&gt;
Karl, you are correct,  and it looks like I now have a nice sized project making some customized quoting software.  I'm actually from a civil engineering background, so I'm multichallenged.  My client loves his Mac, so I'm really hoping the ODBC will be cross platform some time soon? &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_wink.gif" style="display : inline;" /&gt; &lt;BR /&gt;
&lt;BR /&gt;
I've got tight deadlines and even tighter budget, so He'll have to live with a windows only &lt;IMG src="https://community.graphisoft.com/legacyfs/online/emojis/icon_mad.gif" style="display : inline;" /&gt;  for version 1.0, but at least we can still view and edit projects on a Mac.&lt;BR /&gt;
&lt;BR /&gt;
Thank God I don't have to code in C++.  Automatic memory management is the way to go!  Now, on to the SQL and logic statements!!</description>
      <pubDate>Tue, 08 Feb 2005 19:35:48 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6330#M403</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-02-08T19:35:48Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6331#M404</link>
      <description>Good luck with the project. &lt;E&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/E&gt;&lt;BR /&gt;
&lt;BR /&gt;
I have not heard any rumors of a Mac ODBC implementation.  Note also that SQL queries for ODBC look different than those in the Calculate SQL dialog because the table/schema structures as slightly different.  So, you cannot copy/paste SQL from one to the other and expect it to work in all cases.  (It will work in some cases, of course.)&lt;BR /&gt;
&lt;BR /&gt;
Finally, SQL and ODBC provide read-only access to project data.  If you want two-way access, you need to jump into C++ and the ArchiCAD API.&lt;BR /&gt;
&lt;BR /&gt;
If you have any other questions about ODBC (or the API), please ask them on the Developer area of this forum.  Any questions about SQL as it applies to the Calculate menu belong here though.&lt;BR /&gt;
&lt;BR /&gt;
Cheers,&lt;BR /&gt;
Karl</description>
      <pubDate>Wed, 09 Feb 2005 19:53:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6331#M404</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2005-02-09T19:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6332#M405</link>
      <description>If you want to get Intersection Priority or other information out you can click Calculate-&amp;gt;Show Data Structure.  You can then select the Layers table and get the data model.&lt;BR /&gt;
&lt;BR /&gt;
Of course, you have to have the "Show Data Structure" tab enabled.</description>
      <pubDate>Tue, 24 May 2005 15:22:02 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6332#M405</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2005-05-24T15:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: [Tip] Export layer combination data</title>
      <link>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6333#M406</link>
      <description>There seems to be a problem with the query given earlier in this thread:&lt;BR /&gt;
&lt;A href="http://archicad-talk.graphisoft.com/viewtopic.php?p=6914#6914" target="_blank"&gt;&lt;LINK_TEXT text="http://archicad-talk.graphisoft.com/vie ... =6914#6914"&gt;http://archicad-talk.graphisoft.com/viewtopic.php?p=6914#6914&lt;/LINK_TEXT&gt;&lt;/A&gt;&lt;BR /&gt;
and ArchiCAD 9 build 2018.  Chris Parsons wrote to me privately, and I confirmed that this query generates the same layer info for all combinations in 9.  It does work fine in 8.1&lt;BR /&gt;
&lt;BR /&gt;
(New in 9 are the intersection priority and wireframe values, but they show the same values for all combinations.)&lt;BR /&gt;
&lt;BR /&gt;
I've reported the issue to GS for investigation.&lt;BR /&gt;
&lt;BR /&gt;
Karl</description>
      <pubDate>Thu, 26 May 2005 19:22:47 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Collaboration-with-other/Tip-Export-layer-combination-data/m-p/6333#M406</guid>
      <dc:creator>Karl Ottenstein</dc:creator>
      <dc:date>2005-05-26T19:22:47Z</dc:date>
    </item>
  </channel>
</rss>

