Exporting 2d vector drawing from blender with dotted hidden lines?

first of all blender line have only one pixel wide !
unless you make it with some thickness!

so use curves beveled and convert to mesh

another way would be to make a mesh like this and
make a copy and use wireframe node to get a wireframe style of lines

check these out

Addon script output SVG

SVG Export
Freestyle svg export is to save freestyle line rendering as svg

Video

happy bl