//打开或新建工艺时初始化 private void OpenOrCreateProjectInit() { //变量值 IsProjectOpen = true; //控件状态 pnlWelcome.Hide(); pnlMain.Show(); this.Text = ProPath + "\\" + ProName + ".3dppm"; //更新会签 if (NXFun.isFileExist(ToFullPath(NXFun.SignOffXML))) { bool result = XML3DPPM.UpdateSignOff(XmlFile, ToFullPath(NXFun.SignOffXML)); if (result) { NXFun.MessageBox("更新会签信息成功,请在\"编辑图纸->二维图表\"模块点击\"更新表头\"来刷新会签信息。"); } else { NXFun.MessageBox("更新会签信息失败,请确认会签文件是否有效!"); } } //操作 ProcessEdit.ProPath = ProPath; ProcessEdit.ProName = ProName; ProcessEdit.Init(); ModelEdit.ProPath = ProPath; ModelEdit.ProName = ProName; ModelEdit.Init(); SheetEdit.ProPath = ProPath; SheetEdit.ProName = ProName; SheetEdit.Init(); }