PublishToXML() { // get output file to save XML report to System.Windows.Forms.SaveFileDialog dbox = new System.Windows.Forms.SaveFileDialog(); dbox.CreatePrompt = false; dbox.OverwritePrompt = true; dbox.AddExtension = true; dbox.DefaultExt = "xml"; dbox.Filter = "XML Files (*.xml)|*.xml"; dbox.Title = "XML file to save report as"; if (dbox.ShowDialog() == DialogResult.OK) { ModelStats.Report statReport = new ModelStats.Report(); statReport.XmlReport(dbox.FileName, m_revitApp.ActiveUIDocument.Document); } }
public void PublishToXML() { // get output file to save XML report to System.Windows.Forms.SaveFileDialog dbox = new System.Windows.Forms.SaveFileDialog(); dbox.CreatePrompt = false; dbox.OverwritePrompt = true; dbox.AddExtension = true; dbox.DefaultExt = "xml"; dbox.Filter = "XML Files (*.xml)|*.xml"; dbox.Title = "XML file to save report as"; if (dbox.ShowDialog() == DialogResult.OK) { ModelStats.Report statReport = new ModelStats.Report(); statReport.XmlReport(dbox.FileName, m_revitApp.ActiveUIDocument.Document); } }