Ejemplo n.º 1
0
        public override void StartCommand()
        {
            base.StartCommand();
            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            //this.InitializePreviewGraphics();

            //create and display the dialog
            m_editNetForm = new EditNetForm(m_inventorApplication, this);

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

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

            //enable interaction
            EnableInteraction();
        }
Ejemplo n.º 2
0
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

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

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

            if (m_UCS != null)
            {
                if (m_UCS.Visible == true)
                {
                    m_UCS.Visible = false;
                }
            }

            base.StopCommand();
        }
Ejemplo n.º 3
0
        public EditNetCmd()
        {
            m_editNetForm    = null;
            m_selectFace     = null;
            m_selectiFeature = null;

            m_UCS          = null;
            m_highlightSet = null;
            assembly       = System.Reflection.Assembly.GetExecutingAssembly();
            FileInfo asmFile = new FileInfo(assembly.Location);

            deFaultpath = asmFile.DirectoryName + "\\CavityLibrary";
        }