/// <summary> /// delete custom nodes /// </summary> /// <param name="BrowserNodeDefinition"></param> /// <param name="BeforeOrAfter"></param> /// <param name="Context"></param> /// <param name="HandlingCode"></param> /// <remarks></remarks> private void m_BrowserEvents_OnBrowserNodeDeleteEntry(object BrowserNodeDefinition, Inventor.EventTimingEnum BeforeOrAfter, Inventor.NameValueMap Context, ref Inventor.HandlingCodeEnum HandlingCode) { MessageBox.Show("OnBrowserNodeDeleteEntry"); //do deletion by the client if (BeforeOrAfter == EventTimingEnum.kAfter) { ClientBrowserNodeDefinition oBND = (ClientBrowserNodeDefinition)BrowserNodeDefinition; oBND.Delete(); } }
private void m_BrowserEvents_OnBrowserNodeLabelEdit(object BrowserNodeDefinition, string NewLabel, Inventor.EventTimingEnum BeforeOrAfter, Inventor.NameValueMap Context, ref Inventor.HandlingCodeEnum HandlingCode) { MessageBox.Show("OnBrowserNodeLabelEdit"); }
private void m_ApplicationEvents_OnOpenDocument(Inventor._Document DocumentObject, string FullDocumentName, Inventor.EventTimingEnum BeforeOrAfter, Inventor.NameValueMap Context, Inventor.HandlingCodeEnum HandlingCode) { System.Windows.Forms.MessageBox.Show((string)("OnOpenDocument: " + DocumentObject.DisplayName)); }