Ejemplo n.º 1
0
        public void partURDFExporter()
        {
            ModelDoc2 modeldoc = iSwApp.ActiveDoc;

            if ((modeldoc.Extension.NeedsRebuild2 == 0) || MessageBox.Show("Save and rebuild document?", "The SW to URDF exporter requires saving before continuing", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                if (modeldoc.Extension.NeedsRebuild2 != 0)
                {
                    int options = (int)swSaveAsOptions_e.swSaveAsOptions_SaveReferenced | (int)swSaveAsOptions_e.swSaveAsOptions_Silent;
                    modeldoc.Save3(options, 0, 0);
                }
                PartExportForm exportForm = new PartExportForm(iSwApp);
                exportForm.Show();
            }
        }
Ejemplo n.º 2
0
 public void partURDFExporter()
 {
     ModelDoc2 modeldoc = iSwApp.ActiveDoc;
     if ((modeldoc.Extension.NeedsRebuild2 == 0) || MessageBox.Show("Save and rebuild document?", "The SW to URDF exporter requires saving before continuing", MessageBoxButtons.YesNo) == DialogResult.Yes)
     {
         if (modeldoc.Extension.NeedsRebuild2 != 0)
         {
             int options = (int)swSaveAsOptions_e.swSaveAsOptions_SaveReferenced | (int)swSaveAsOptions_e.swSaveAsOptions_Silent;
             modeldoc.Save3(options, 0, 0);
         }
         PartExportForm exportForm = new PartExportForm(iSwApp);
         exportForm.Show();
     }
 }