cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
Ahmed_K
Mentor

Compiling GDL Outside Archicad — Is It Possible?

I managed to convert several GSM objects and GDL macros to XML, modify them, rebuild them, and load them back into Archicad as GSM files. they work perfectly after several compilations, 

The only thing I'm stuck with now is the GDL compilation.

The code is compiled by Archicad, so outside Archicad I can modify the GDL, but I have no way to know if the code actually compiles correctly until I open it in Archicad.

Is there any way to compile GDL outside Archicad?

Maybe an external compiler, command-line tool, SDK, or something used internally by Archicad that I'm not aware of?

If there is a way to do this, it would be a pretty big deal for what I'm trying to build.

Has anyone ever managed to compile or validate GDL code outside Archicad?

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

There is not an external compiler.  Actual GDL coding is discussed in a separate developer forum here:
https://community.graphisoft.com/t5/GDL/bd-p/forum-gdl

 

Vote for Wish: Copy/Paste in 3D

AC 29 USA and earlier   •   hardware key   •   macOS Tahoe 26.6.2 MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
runxel
Moderator

It's called the LPXML_Converter. It's technically a separate app inside the Archicad install dir.

 

Lucas Becker | AC 29 on Mac (Sequoia) | Graphisoft Insider Panelist | Akroter.io – high-end GDL objects | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text

My List of AC shortcomings & bugs | I Will Piledrive You If You Mention AI Again |

POSIWID – The Purpose Of a System Is What It Does /// «Furthermore, I consider that Carth... yearly releases must be destroyed»
vtomaz
Booster

I am using Cluade AI Pro and creating GDLs with no problems. Claude writes XML code and then I translate to GSM with LPXML_Converter and vice versa. No manual coding. Made large quantity of GDLs for office use.

Ahmed_K
Mentor

i'm actually using  LPXML_Converter to convert generated Xmls from Claude AI too , i thought there is a way to check the code before importing inside archicad , to avoid multiple conversions of Xmls , 

So actually it's the only way of doing things ,

 

 

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

Yes. A syntax check like in Archicad is essentially possible with Graphisoft’s LP_XMLConverter.

LP_XMLConverter convertlibrary -checkall <temp-src> <temp-dst>


I use it in a VS Code based GDL development environment. The GDL source is edited outside Archicad and rebuilt/validated through LP_XMLConverter. Together with Graphisoft’s GDL VS Code extension this gives you syntax checking and a GSM build workflow without opening Archicad.
I wrapped the complete workflow here: GDLnucleus.

Jochen Suehlo . AC12-29 . MAC OSX 26 . WIN11
GDL object creation: b-prisma.de
Ahmed_K
Mentor

Very interesting !! i'll give it a try , 

 

 

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

I’m currently using Claude in vscode to create and edit GDL objects for me. I’ve currently got it compiling and checking the code for errors itself and with the tapir api, reloading libraries, placing object and editing parameters to allow Claude to write the code, check it, load the updated object in Archicad and place test objects and test different parameters while its trying to work something out or resolve a GDL error. 

It has created a Claude skill and has a powershell build script to run the lpxml converter compile command and object error checking and another powershell script to run the tapir api functions. 

It’s incredibly impressive. I’m in the process of trying to determine how to make the skill shareable with the intent of adding in more gsl

reference guide info and best practices. 

I had a few missteps at first, it was creating a new object with no subtype, so I couldn’t place it, it’s gotten caught on itself using incorrect array structures or array indexes. But once I told it how to check for errors itself before it compiled it’s just been solving its own issues, and I just test out whatever new feature it’s added to the object and give it feedback on where its needs functional adjustments. 

The current little project I was working on this evening was porting the dynamic hotline object that posted @sinceV6 posted here into a batten screen object that can have adjustable batten colours for every batten. Has only taken me a couple of hours to get something functional. 

It’s great at writing the UI interface too!

Scott J. Moore | Fulton Trotter Architects | BIM Manager, Associate, Architect
Since AC13 | Current versions AC23.7000 & AC26.5002 | BIMCloud Basic | Python, GDL, VBA, PHP, SQL, CSS
Certified Graphisoft BIM Manger (2022)
Win 10, i9-9900K, 32GB, Quadro P2200, 500GB NVMe

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!