GDL
About building parametric objects with GDL.

Is the LP_XMLConverter source code public?

Anonymous
Not applicable
I would like to tweak and improve LP_XMLConverter. Is the source code available? I couldn't find it in the Library SDK. It seems to me that the perl scripts just wrap the LP_XMLConverter binary. Should I be using the perl scripts instead of LP_XMLConverter directly?
5 REPLIES 5
Karl Ottenstein
Moderator
No Graphisoft source code is available to my knowledge. Were the XML Converter tool available, it would be on the developer SDK site with the API and library kits, but it isn't.

While you can't change the conversion from XML back to GDL... you can certainly run any code/scripts on the XML itself prior to conversion. Is that not sufficient to achieve your goals?
One of the forum moderators
AC 27 USA and earlier   •   macOS Ventura 13.6.6, MacBook Pro M2 Max 12CPU/30GPU cores, 32GB
runxel
Legend
What's your plan, James?

What do you want to achieve?
Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Anonymous
Not applicable
I want to make changes ranging from basic things like prettier output and more verbose errors to more advanced functionality such as concurrency or integration with tools such as a GDL linter or preprocessor. I don't understand why Graphisoft would want to keep the source from the public. I don't see it hurting the company at all and it would be better for the community as a whole if we could contribute to the tools. We all have our different needs and use-cases, and could benefit from the work of other users.

Right now, I've just been "wrapping" LP_XMLConverter in a Python script for my build process, but if Graphisoft doesn't want to open-source it, I may resort to reversing the GSM format myself and writing my own converter, which would be a pain.
runxel
Legend
James wrote:
integration with tools such as a GDL linter or preprocessor

Wait, did you built a GDL linter? That would be awesome.

But yeah, more open source would definitely be great...
Lucas Becker | AC 27 on Mac | Author of Runxel's Archicad Wiki | Editor at SelfGDL | Developer of the GDL plugin for Sublime Text |
«Furthermore, I consider that Carth... yearly releases must be destroyed»
Ralph Wessel
Mentor
Couldn't you do everything you want using the source XML? If it's part of a build toolchain, then you could simply call the LP_XMLConverter tool as a step in your overall process.
Ralph Wessel BArch