コード例 #1
0
ファイル: RotateCmd.cs プロジェクト: hzm2016/ValveBlockDesign
        public override void StartCommand()
        {
            base.StartCommand();

            base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection);

            //this.InitializePreviewGraphics();

            //create and display the dialog
            m_rotateForm = new RotateForm(m_inventorApplication, this);

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

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

            //enable interaction
            EnableInteraction();
        }
コード例 #2
0
ファイル: RotateCmd.cs プロジェクト: hzm2016/ValveBlockDesign
        public override void StopCommand()
        {
            //TerminatePreviewGraphics();
            m_inventorApplication.ActiveView.Update();

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


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

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

            base.StopCommand();
        }
コード例 #3
0
ファイル: RotateCmd.cs プロジェクト: hzm2016/ValveBlockDesign
 public RotateCmd()
 {
     m_rotateForm     = null;
     m_selectFace     = null;
     m_selectiFeature = null;
     m_highlightSet   = null;
 }