cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Modeling
About Archicad's design tools, element connections, modeling concepts, etc.

ArchiCAD and SQL

Karl Ottenstein
Moderator
vannassen wrote:
hi,
i'm trying to use sql for making queries to the database, but i can't quite figure out what sql-statements it understands and which ones i doesn't. does anybody have a clue or is i documentet somewhere?
regards,
vannassen
The available tables and fields are fully documented, but the version of SQL is not. I had asked GS tech support about this once and was simply told it was 'standard' SQL and given no further information. Of course, there are many dialects and so we are on our own it seems to determine the exact syntax allowed.

The following post with some sample code might help you:
http://www.graphisoft.com/community/archicad-talk/viewtopic.php?p=6914#6914

I used to know other versions of SQL, but after having used Microsoft Access for so many years, that's the only version I know these days ... and the FLAT keyword was new to me. The other syntax in the linked example might be enough for you to extrapolate your SQL knowledge to retrieve what you want.

Post some examples for others ... of things that don't work, and we'll see if we can figure them out jointly ... or of things that work that people can use Cookbook-style like my tip above. It seems that very few people are using this feature.

Cheers,
Karl
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.7, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
0 REPLIES 0