コード例 #1
0
        private static void ExportPartSolid()
        {
            string err_str;

            if (!Variables.is_export_part_now)
            {
                return;
            }

            FeatureCAM.FMSolid solid = (FeatureCAM.FMSolid)Variables.doc.Solids.Item(Variables.part_solid_name);
            if (solid != null)
            {
                Variables.part_fpath = Path.Combine(Variables.output_dirpath, solid.Name + "_part.stl");
                solid.ExportToSTL(Variables.part_fpath, out err_str);
                if (err_str == "" || err_str == null)
                {
                    Variables.output_msg += Variables.part_fpath + "\n";
                }
                else
                {
                    MessageBox.Show("Error occured while exporting part solid to .stl file: \n'" + err_str + "'", Variables.prog_name);
                }
            }
        }
コード例 #2
0
 public SolidInfo(FMSolid solid_obj, bool export_solid)
 {
     solid     = solid_obj;
     is_export = export_solid;
 }