https://ea.rna.nl/archimate/free-archimate-overview-pdf/
The story at the end tells a bit about LMTX and how it was done (it's about 2500 lines of lua to parse the XML and produce the LMTX statements, and about 3500 lines of METAPOST/Metafun to produce the graphics).