Drawing to SVG

Hi all, I’ve been vibe-coding an addin to export a slddrw to SVG.
It’s used internally to display our drawings on our website with clickable bom balloons.

Note: the exported svg(s) can be pretty large for big drawings, and zooming & panning is laggy so I used this to render them with minimal lag: GitHub - aurimasg/blaze: Multi-threaded, CPU-based vector graphics rasterizer.

The code in SvgExporter is messy, and it doesn’t support everything correctly, but it does mostly work. It uses GetPolylines6, so it only supports “wireframes” (is that the proper word?).

If anyone finds it useful and wants to improve it, I’d be glad to accept your PRs. That’s mostly why I’m posting this. There are some things I still don’t understand very well, like the line data returned by GetLineFontInfo (how am I supposed to translate that into millimeters?).