Learn to manage BIM workflows and create professional Archicad templates with the BIM Manager Program.
2024-12-31 05:48 AM
Is it possible to write GDL API in chatgpt or claude ai?
If possible, what is a well-trained ai?
2024-12-31 06:19 AM
I renege trying it when chatgpt first launched and it would give crap response that was like a made up BASIC.
However I asked ChatGPT and it told me this:
Yes, I am familiar with the principles, syntax, and structure of Archicad’s GDL (Geometric Description Language). I can write scripts that follow correct syntax and logic based on GDL conventions. However, my training data includes the fundamentals of GDL up to 2023, and I can cross-reference updated documentation online if necessary to ensure accuracy.
If you have a specific requirement for a GDL script, feel free to share the details, and I’ll construct the code for you! Let me know what kind of object or functionality you’re aiming to create.
I then asked it:
Can I write me the 2D script for a polygon fill, a square 1m wide x 1m wide with 3 straight edges and one edge that is a curve with a radius of 1m.
Response:
!! 2D Script
! Set up fill type and pens
pen 1 ! Outline pen color
fill 25 ! Fill type (change to desired fill ID)
line_type 1 ! Line type for edges
!! Define the polygon with 4 points and an arc
poly2_b{4} 5, 1+2+4, ! 5 points, flags for visibility, sharp edges, and arcs
0, 0, ! Bottom-left corner (starting point)
1, 0, ! Bottom-right corner
1, 1, ! Top-right corner
0, 1, ! Arc start point (Top-left corner)
0, 0, 1, 1 ! Arc control: back to (0,0) with radius 1m
! Set fill and close the polygon
end
I’m not in front of a computer to test, the arc control I’m not quite sure it correct but the rest looks half decent.
i asked it some other leading questions and it gave me answers about GLOB_MODPAR_NAME so i think it’s fairly competent.
2024-12-31 06:26 AM
My guess is currently no one has spent the time to teach any ai engines things.
And given the poor quality of the over all documentation I'm guessing we would need a collaboration of a bunch of us to really reach it to understand what's wanted and needed.
I have started training a little with some of my simpler objects but it's been a longer process than I have time for
2024-12-31 06:41 AM
I have no doubt it could help with the syntax of a command or maybe even a group of commands or a routine to do something.
But I doubt very much if it could create a complicated object, probably nothing more than the most basic of forms.
Otherwise you would have to spend an awful lot of time explaining what the object is to do, how it is to be made up, what parameters you want, what relationships they have, how it is to be controlled, min/max values, etc., etc.
I am just not sure it would be possible, unless you are happy for it to just knock something together and then try and refine it to what you want.
I guess the only way to find out is give it a try.
If it doesn't work, you are no worse of than trying to do it yourself.
If it does work - bonus.
Barry.
2024-12-31
07:52 AM
- last edited on
2025-01-02
10:14 PM
by
Laszlo Nagy
My question is to Graphisoft.
REVIT's Family is accessible to everyone.
However, GDL is not accessible even without basic knowledge.
I think Graphisoft has a responsibility to solve this problem.
The most powerful thing about AI is the programming language. Because there is so much data. Programming is really making programming accessible to beginners. So, I would like to know what Graphisoft is doing for Archicad GDL. I would like to know if they have made the GDL file format readable by AI. Or, as you mentioned, are they preparing to provide learning text for users?
14 hours ago - last edited 14 hours ago by Barry Kelly
Gdl objects are generated from coded scripts,
AI is kind of machine learning,
I'm sure there is a way to train AI to generate parametric objects from a command line.
I wish this will happen soon ❤️😃
Edit by moderator : this separate post merged here as it is the same topic.
14 hours ago
AI needs good documentation to reference, or an easy source of reference materials that provide both input and output to learn from. GDL is lacking in the first, and the second is not easy... I would not hold my breath... AC40?
AC22-28 AUS 3110 | Help Those Help You - Add a Signature |
Self-taught, bend it till it breaks | Creating a Thread |
Win11 | i9 10850K | 64GB | RX6600 | Win11 | R5 2600 | 16GB | GTX1660 |
11 hours ago - last edited 11 hours ago
Just for giggles, I tried with Claude before, and it could give me a 2D and 3D script for a typical table that was 80% correct. Then with a little back and forth I told it what it was doing wrong and then it fixed the code itself.
This was the 3D script in the end:
! Parameters
length = 1200 ! Table length in mm
width = 800 ! Table width/depth in mm
height = 750 ! Table height in mm
top_thickness = 25 ! Table top thickness
leg_width = 50 ! Square leg dimension
! Position legs inset from edges
leg_inset = 50 ! Distance from edge
! Table top
material 1
add 0, 0, height - top_thickness
block length, width, top_thickness
del 1
! Legs (4 corners)
material 1
! Front left leg
add leg_inset, leg_inset, 0
block leg_width, leg_width, height - top_thickness
del 1
! Front right leg
add length - (leg_inset + leg_width), leg_inset, 0
block leg_width, leg_width, height - top_thickness
del 1
! Back left leg
add leg_inset, width - (leg_inset + leg_width), 0
block leg_width, leg_width, height - top_thickness
del 1
! Back right leg
add length - (leg_inset + leg_width), width - (leg_inset + leg_width), 0
block leg_width, leg_width, height - top_thickness
del 1
I could also have it make a parameter script to limit the range of parameters.
But anything more complicated than a table, or any other script type failed immediately.
Maybe if you tell it to read everything on gdl.graphisoft.com first, and then prompt it, it might do better?
6 hours ago
this was about a year and a half ago, but i asked if it could create ArchiCAD tools. it said yes.
asked if it could improve the dimensioning tool according to some specs, and said yes.
then it generated a lot of pages of code and told me to run it
i inmediately shut the computer down.
6 hours ago
so, what if we open all the code for all the objects and feed it to it? like "this Is a chair, "this is a table" "this is the bilbao Guggenheim" and so forth?