Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 
2024 Technology Preview Program

2024 Technology Preview Program:
Master powerful new features and shape the latest BIM-enabled innovations

Archicad Python API
About automating tasks in Archicad using the Python API.

Automate LP_XMLConverter with Python

Mathias Jonathan

Hi everybody!


I discovered the LP_XMLConverter ( and used it for my coding need (extract images, coding in VStudio Code, modifying and compile multiple object at the same time...).


I use it with a terminal as required, typing some command, but I was thinking of creating a python script with an interface to help me  to use it.


Has anyone ever done something similar?
I'm quite a beginner to python (and in coding in general), and I'm not sure where to look/if it is possible.

If I understand correctly, the subject/difficulty would be to be able to pass commands to the executable file as you would with the command prompt.




Hi Mathias,


I think a good start is the Python module called subprocess to pass the commands.

An this chapter in "Automate the boring stuff with Python" (Paragraph titled: Launching Other Programs from Python) should give a nice introduction to it.


Bernd Schwarzenbacher - Archicad Add-On Developer - Get Add-Ons & Archicad Tips on my Website:
Jochen Suehlo

Something similar I did with gdlnucleus for MAC:
The first version for Sublime text is for free download (older Python version), the VSC-version costs 25,- Euro.

Jochen Suehlo . AC12-27 . MAC OSX 14.4 . WIN11
GDL object creation:


You might want to take a look at the Builder class from this file from runxel sublime text addon:


Another thing worth mentioning is that the Library Dev Kit available on the Graphisoft Developer website has the documentation for the LP XML tool with some additional information that can be useful when doing this kind of stuff (eg, it tells you the char limit of the password field when encrypting the gsm).