SVG output of diagrams/objects

It would be useful for document compiling if we could export diagrams as SVG format.