r/ArchiCAD • u/Poppyseed2022 • 3d ago
hints, tips and tricks Vibe coded GDL objects
Probably way late to the party, but maybe someone will find it useful.
I just prompted Gemini to make me a GDL object for a sectional extendable pergola shading system. Absolute piece of cake. Took a small chunk of time, maybe 30mins or so, to flesh out my prompt and reason out all the details, and only a couple of minutes for Gemini to spit out all the code - it doesn’t give you a file, it outputs code chunks, in this case Parameters, Master, 2D Script, and 3D script. You have to create the object file yourself, and set up the list of parameters (guided by Gemini), but outside of that it’s just copy and paste the code into the relevant tabs. Easy peasy…. GDL has always been hieroglyphs to me, but this actually makes the construction of custom objects accessible to someone like me who can’t code…


2
u/Un13roken 3d ago
I've just started exploring this. Did you try using the XML converters to automate entering the parameters ?
Iterating while manually entering parameters was getting a bit messy.
16
u/ebatte 3d ago
I’m doing extensive work with Claude and ArchiCAD. The first time I tried doing this earlier in the year it was a dismal failure, but I tried it again this week and I was completely blown away at how well it worked. Blown away!
I just gave Claude a PDF cut sheets and it nails it. 2d/3d/scripts are nearly perfect. It intelligently decides which parameters would be useful and adds them. So far I’ve done about 6 gdl objects from PDF cut sheets and each one has taken less than 10 minutes.
6
u/Maxxit 3d ago
Gave Claude minisplit hvac cut sheets. It made objects based on the pdfs and the gdl object was surprisingly detailed. Even could see the fan blades thru the grills.
4
u/StartlingCat 3d ago
You can request your AI to write a python script to convert the XML to a .gsm using Archicad's LP_XMLConverter.exe. The converter should already be installed in your Archicad installation. (C:\Program Files\Graphisoft\Archicad 30\LP_XMLConverter.exe)
1
u/emresen 3d ago
Is the opening percentage adjustable then?
1
u/swi6 1d ago
Is this fully in Claude or do you need a mcp connection to control archicad?
1
u/Gullible_Highway7448 3d ago
Nice work
1
u/Appropriate-Eye-1227 3d ago
Very Cool. and to think that i need to make one pergola like that like 6 months ago and i have to use a SketchUp warehouse deformed model to solve it
1
u/raws31 3d ago
Nice. I’ve been using Gemini to help me add bits of code for things I wanted to achieve but nothing from scratch yet. It helped to upload the GDL reference guide and telling to only use that rather than scouring the internet. Gemini has a much better understanding of that document than I do!
1
u/Flaky-Vacation-2782 2d ago
This is the way!
I have been using chat to create parametric kitchen cabinets that align with how our firm details them and how we want to represent them.
A few teething issues at the start due to me not having a proper subscription. But now we have a kitchen cabinet unit that works in about 90% of our designs. Amazing. And much cheaper than buying third party apps.
1
u/nonpertutti 2d ago
ChatGPT also does the job nicely. I cannot code and I feel proud when I understand it. However, with AI guidance I have been making my own gdl parametric objects. They are quite complex (in my opinion!) and I add modifications and fixing until I really get what I want. Same story: one year ago GPT failed, now it works.
1
u/EarNo7992 2d ago
Great object
0
u/Small-Ad6014 3d ago
Muito bom! Se possível, disponibilize o objeto.