Your Products have been synced, click here to refresh
1 /// <summary> 2 /// Make the Pcdmis session visable. 3 /// </summary> 4 public bool Visible 5 { 6 get { if (pcdSession != null) return pcdSession.Visible; return false; } 7 set { if (pcdSession != null) pcdSession.Visible = value; } 8 }
1 private void btnPcdmisWindow_Click(object sender, EventArgs e) 2 { 3 if (CMMsession.Visible == true) 4 { 5 CMMsession.Visible = false; 6 return; 7 } 9 CMMsession.Visible = true; }
/// <summary> Opens a new Pcdmis subprogram </summary> /// <remarks> /// The opened subprogram is ready to have assignments, tolerances and /// points written into it by the user DotNet application. /// </remarks> /// <param name="subName">Name of subprogram without path or extension.</param> /// <returns> /// Returns a PcdmisSubProgram object that has methods for writing to /// the Pcdmis subprogram. /// </returns> public PcdmisSubProgram CreateSubroutineProgram(string subName) { if (SessionIsAvailable) { try { this.CloseAll(); } catch (Exception ex) { ExceptionMessages = ExceptionMessages + ex.Message; } // Make sure the original is deleted before initializing a new subprogram. PurgeSubProgram(subName); pcdPartProgram = pcdPartPrograms.Add(AppProgSubrName(subName), PCDLRN.UNITTYPE.MM, pcdDefaultMachine, DefaultProbeName); return new PcdmisSubProgram(pcdPartProgram, subName); } return null; }
1 /// <summary> 2 /// Make the Pcdmis session visable. 3 /// </summary> 4 public bool Visible 5 { 6 get { if (pcdSession != null) return pcdSession.Visible; return false; } 7 set { if (pcdSession != null) pcdSession.Visible = value; } 8 }
1 private void btnPcdmisWindow_Click(object sender, EventArgs e) 2 { 3 if (CMMsession.Visible == true) 4 { 5 CMMsession.Visible = false; 6 return; 7 } 9 CMMsession.Visible = true; }
/// <summary> Opens a new Pcdmis subprogram </summary> /// <remarks> /// The opened subprogram is ready to have assignments, tolerances and /// points written into it by the user DotNet application. /// </remarks> /// <param name="subName">Name of subprogram without path or extension.</param> /// <returns> /// Returns a PcdmisSubProgram object that has methods for writing to /// the Pcdmis subprogram. /// </returns> public PcdmisSubProgram CreateSubroutineProgram(string subName) { if (SessionIsAvailable) { try { this.CloseAll(); } catch (Exception ex) { ExceptionMessages = ExceptionMessages + ex.Message; } // Make sure the original is deleted before initializing a new subprogram. PurgeSubProgram(subName); pcdPartProgram = pcdPartPrograms.Add(AppProgSubrName(subName), PCDLRN.UNITTYPE.MM, pcdDefaultMachine, DefaultProbeName); return new PcdmisSubProgram(pcdPartProgram, subName); } return null; }
© 2024 Hexagon AB and/or its subsidiaries. | Privacy Policy | Cloud Services Agreement |