r/ArchiCAD • • 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…

61 Upvotes

21 comments sorted by

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. 

2

u/Poppyseed2022 3d ago

I didn’t bother attempting to streamline that part as there were only a handful of parameters to enter, but I could see how on a more complex object it would become tedious

1

u/Un13roken 3d ago

Aah, makes sense. And honestly that is probably what I should do as well. Considering I've been trying to setup that path through the command line, and it's become a detour of its own. 

Nice to see Gemini can get this done though. Finally even if graphisoft has pretty much left the gdl system to rot, it gets a nice injection of life into it. 

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.

2

u/Sabedoria_Bean 2d ago

Me too! I've been using it to create objects for vegetation that aren't heavy on the file size and it has been pretty good!

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.

1

u/CandidateUnlikely168 2d ago

Czy Claude jest w stanie wygenerować gdl na podstawie pliki rfa?

1

u/ebatte 1d ago

I haven’t tried direct conversion, but I had a lot of polygon heavy objects imported from .rfa. I selected them in AC and told Claude to rebuild them as native gdl with low polygon count, but high fidelity. 76%-96% polygon reduction with very little visual degradation. It even added parameters intelligently.

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/baldijo 3d ago

that is a good advice thanks

1

u/emresen 3d ago

Is the opening percentage adjustable then?

5

u/Poppyseed2022 3d ago

Yes, I told it to add an editable hotspot so the opening can be adjusted in both 2D and 3D…super pleased with the result actually

1

u/swi6 1d ago

Is this fully in Claude or do you need a mcp connection to control archicad?

1

u/Poppyseed2022 1d ago

I used Gemini, but no mcp connection needed. Just prompted with a detailed description of what I wanted and it output all the code needed

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.