var visio = new Diagram("template.vsdx"); visio.Save("output.vdx", SaveFileFormat.VDX);