2023-10-06 01:52 PM - last edited 3 weeks ago by Doreena Deng
Hi everybody!
I discovered the LP_XMLConverter (https://gdl.graphisoft.com/tips-and-tricks/how-to-use-the-lp_xmlconverter-tool) 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.
Thanks!
2023-10-06 02:42 PM - edited 2023-10-06 02:52 PM
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
2023-10-06 02:53 PM
Something similar I did with gdlnucleus for MAC:
https://gdlnucleus.com/
The first version for Sublime text is for free download (older Python version), the VSC-version costs 25,- Euro.
2023-10-18 11:18 PM
You might want to take a look at the Builder class from this file from runxel sublime text addon: https://github.com/runxel/GDL-sublime/blob/master/GDL.py
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).