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 combinations in an external program such as Excel or Access.”
This tip is an example of using one of ArchiCAD’s lesser-known capabilities, namely SQL queries from inside the Calculate menu group:
By default Query can not be found in any of the Menus.
- Go to Options – Work Environment and add Query (it is easy to find it in All commands in alphabetical order) to a chosen Menu option.
Choose Query… and paste in the following (below ‘Type your SQL query here:’):
- SELECT FLC.NAME AS COMBINATION, LAYERS.NAME AS LAYER_NAME,
FROM FLAT (LAYERCOMBINATIONS, LAYER_STATUS) AS FLC
INNER JOIN LAYERS ON (FLC.LAYER_STATUS.LAYER_ID = LAYERS.ID)
ORDER BY FLC.NAME, LAYERS.NAME
- Click the Execute button. The result will appear in your web browser as an alphabetized table. (see screenshot below)
You can save the HTML and/or paste it into Excel, etc. for further manipulation to achieve your documentation goals.
By using the command Show Data Structure you can display all of the tables and fields that can be viewed with SQL Query.
Just like Query, Show Data Structure can not be found in any of the Menus by default. You can add it to one of your menus in Work Environment by using the sorting “All commands by theme”:
Then, this command will open an XML file in your browser showing all of the fields and tables… that looks like this:
If you want to learn more about SQL queries, you can find further details in the ARCHICAD Calculation Guide available in the Help Menu of ARCHICAD.
Using the ArchiCAD Plan ODBC Driver, Windows users can access data from ArchiCAD Plan files by using SQL queries from within different applications (e.g: Microsoft Access). The data is read-only; that is, you can retrieve quite a variety of information from your project file, but you cannot change the project itself.
You can download the driver and the documentation from these locations: