Ejemplo n.º 1
0
        public override void StartCommand()
        {
            base.StartCommand();

            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            //this.InitializePreviewGraphics();

            //create and display the dialog
            m_deleteCavityForm = new DeleteCavityForm(m_inventorApplication, this);

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

            //initialize this command data members
            m_selectFace     = null;
            m_selectiFeature = null;

            //enable interaction
            EnableInteraction();
        }
Ejemplo n.º 2
0
 public DeleteCmd()
 {
     m_selectFace       = null;
     m_selectiFeature   = null;
     m_deleteCavityForm = null;
     m_highlightSet     = null;
     deleteName         = new string[20];
 }
Ejemplo n.º 3
0
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

            //destroy the command dialog
            m_deleteCavityForm.Hide();
            m_deleteCavityForm.Dispose();
            m_deleteCavityForm = null;

            if (m_highlightSet != null)
            {
                this.ClearHighlight();
            }

            base.StopCommand();
        }