Tuesday
Is it possible to write GDL API in chatgpt or claude ai?
If possible, what is a well-trained ai?
Tuesday
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.
Tuesday
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
Tuesday
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.
Tuesday - last edited yesterday 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?