Discussion in 'Alibre Script' started by Michel Trahan, Jan 8, 2020.
Is there a way to read or write XML files in python scripts in Alibre Design Expert 2019 ?
Yes, using xml.etree.ElementTree
I made a whole class for saving and loading setting from an XML to make things easier (or at least I think so).
Feel free to use it as is or steal some code from it.
Super cool ! I'll be able to transfer drawing information from Aspire to Alibre ... THANKS !
I'll build an elaborate structure since it will carry many types of information ! But knowing that the full 2.7.7 python library is available makes my day !
I'm interested to see what you make.
Most but not all modules. if it imports it probably works.
Will keep you posted on that but since you already work with it makes me confident that it will work !
I fabricate acoustic ceilings with shapes in a criscross pattern ... easy to program it in Aspire to make the toolpaths for the cuts but difficult to see the end results before cutting it and assembling it (say 24 panels ... 12 per axis)... since the acoustic panels cost a lot ... viewing the end results beforehand is needed !
I can save in XML when I program Aspire Gadgets (in lua 5.2) ... so loading it from XML (in python 2.7) was needed to use this path I should be there in a week ...
Separate names with a comma.