예제 #1
0
        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);
            }
        }
예제 #2
0
        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);
             }
        }