예제 #1
0
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

            //destroy the command dialog
            m_cavityLibraryAddForm.Hide();
            m_cavityLibraryAddForm.Dispose();
            m_cavityLibraryAddForm     = null;
            m_buttonDefinition.Pressed = false;

            //m_commandIsRunning = false;
            base.StopCommand();
        }
예제 #2
0
        public override void StartCommand()
        {
            base.StartCommand();

            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            m_cavityLibraryAddForm = new CavityLibraryAddForm(this);

            if (m_cavityLibraryAddForm != null)
            {
                m_cavityLibraryAddForm.Activate();
                m_cavityLibraryAddForm.TopMost       = true;
                m_cavityLibraryAddForm.ShowInTaskbar = false;
                m_cavityLibraryAddForm.Show();
                AddIndexName();
            }
        }