public ModifyCavity(string codingname, string codingnumber, string pathname, string indexname, EditCavityLibrary formlibrary)//为了参数的传递的构造函数 { InitializeComponent(); this.codingname = codingname; this.codingnumber = codingnumber; this.pathname = pathname; this.indexname = indexname; m_EditCavityLibrary = formlibrary; }
public iFeatureFormCmd() { m_editCavityLibrary = null; m_withThisFace = null; m_highlightSet = null; m_Point = null; m_UCS = null; assembly = System.Reflection.Assembly.GetExecutingAssembly(); FileInfo asmFile = new FileInfo(assembly.Location); deFaultpath = asmFile.DirectoryName + "\\CavityLibrary"; }
public override void StartCommand() { base.StartCommand(); base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection); //initialize interaction previewgraphics objects //create and display the dialog m_editCavityLibrary = new EditCavityLibrary(m_inventorApplication, this); if (m_editCavityLibrary != null) { m_editCavityLibrary.Activate(); m_editCavityLibrary.TopMost = true; m_editCavityLibrary.ShowInTaskbar = false; m_editCavityLibrary.Show(); m_editCavityLibrary.tb1.Text = deFaultpath; AddInformation(); } m_selectEvents.Enabled = false; //EnableInteraction(); }
public override void StopCommand() { //Terminate this preview graphic //destroy the command dialog m_inventorApplication.ActiveView.Update(); m_editCavityLibrary.Hide(); m_editCavityLibrary.Dispose(); m_editCavityLibrary = null; if (m_highlightSet != null) { this.ClearHighlight(); } if (m_UCS != null) { if (m_UCS.Visible == true) { m_UCS.Visible = false; } } base.StopCommand(); m_withThisFace = null; }