What's new

Reading or Writing XML files in scripts

Yes, using xml.etree.ElementTree
https://docs.python.org/2.7/library/xml.etree.elementtree.html

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.
https://www.alibreforum.com/forum/i...s-release-load-save-external-variables.21047/

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 !
 
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 ...
 
Top