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(); }
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(); }
public RotateCmd() { m_rotateForm = null; m_selectFace = null; m_selectiFeature = null; m_highlightSet = null; }