cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Hmooslechner
Moderator

GDL - Python and AI

Made some progressions for using AI (Gemini and Grok) to "script for me" some phyton-scripts to read out the data from 2D and 3D-GDL-Scripts and make additional 2D and 3D-scripts to put in the existing GDLs to get some additional 3D and 2D-results.  Proof of concept..

Example: i made a terrain with Archicads normal tools - transformd this into GDL, copied the GDL-scripts into normal textfiles and made the python read this and created new GDL-Scripts for it.

HHL.jpg

HHL3d.jpg

gelb.jpg

 Works fine now after some iterations with the AI's. GemeniPro leads over Grok, but not far.

I do not know anything about python so far - its all made through the AI's

 

Just to know - You need propper installations of python3.12 and some additional python features like thinker and DXF-handling in python. The AI will lead You trough the installationprozesses when confronted with the errors, when phyton is not installd propperly.

German forum Task - let it auto-translate:
https://community.graphisoft.com/t5/Programmierung/2D-Linien-in-3D-Linien-Morphlinien-umwandeln-mit-...

some german Youtubes: 

https://www.youtube.com/watch?v=WDCHoDz9Ges

https://www.youtube.com/watch?v=96_LfhtMtns

https://www.youtube.com/watch?v=www3XqTI9Xc

it lets You do things  - normally not possible.

 

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
7 Replies 7
Ricardo Heim
Advocate

Thank you for the interesting post!

Do you teach the AI to code in GDL or it worked from default already?

Hmooslechner
Moderator

It works already - but not perfect. In every new "AI - development - iteration" - it works better. Half a year ago - it made just nearly unusable GDL-script code. Four month ago, it deliverd code, which began to work after many discussions and back-infos from Archicad's error-messages. Now, it makes mostly uasable code with very few errors in Archicad in normal situations and has just problems with "very special topics" on the top edge of GDL like simulating morphs in GDL or roof-tiling - "the golden Goose cases" in mathematics in GDL..  Wait some Time and it makes them too, i think..

AC5.5-AC27EduAut, PC-Win10, MacbookAirM1, MacbookM1Max, Win-I7+Nvidia
Ahmed_K
Mentor

Graphisoft can " teach AI " by pushing all it's libraries inside AI engines , with some guidance , that's where AI is beneficial for users , this way we can break a huge barrier of learning gdl 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects

Tbh, I'm working with claude code and a small script that extract/recompile GDL, a few GDL pdf linked to the project and one or two object examples linked to what I want to achieve. Exactly how I would code by myself. IA can take care of multiple object at the same time (Macro, MVO...) and create new parameters,objects with ease. The debug part is where we can help, pinpointing where the IA should look.

Archicad 27 - GDL - PYTHON
Ahmed_K
Mentor

so , if i upload a gdl object ( .gsm file ) to claude, with the pdf " gdl reference guide " or "gdl coockbook",  would help me to generate correct scripts ? with MVO contorole and scheduelable parameters ?

last night i was struggling to script my " concrete linter " for a window , and it ends with some illogic behgaviour of the object , 

 

can you explain more please ? 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects

I use a python script (Linked here) that enable claude AI to use the LP_XML converter tool app and I ask Claude AI to analyse some official object to help me with it (Object + macros). You could also give claude AI the page to the correct documentation (GDL center).

Archicad 27 - GDL - PYTHON
Ahmed_K
Mentor

Good news for the NON GDL lovers , 

 

i created almost 8 macros ,  all of them are like window accessories that aren't incorporated in the default library , like concrete lintels , automatic closing device, cavity for rolling store, shelves ( when i use windows as a closet door ) and other stuff, 

i can tell that all of them where created using CLAUD , Gemini , and sometimes Chat GPT , without writing any line of code , i just descripe what it want , i copy code, paste , and see what happens , after some time , all generated code was correct, 

 

next step , i'll see what happens when i call theese macros inside archciad library elements, 

and what will happen when ai generates code for interface , 

 

This is really very promessing , for some quick tasks AI helps a lot , thats what we need , a way to edit and customise library items easily 

 

 

AMD Ryzen 9 3900X, 32 GB RAM, RTX 3080 10 GB
Archicad 27
Windows 11 professional
https://www.behance.net/Nuance-Architects

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!