public override void StartCommand() { base.StartCommand(); base.SubscribeToEvent(Interaction.InteractionTypeEnum.kSelection); //this.InitializePreviewGraphics(); //create and display the dialog m_moveCmdDlg = new MoveCmdDlg(m_inventorApplication, this); if (m_moveCmdDlg != null) { m_moveCmdDlg.Activate(); m_moveCmdDlg.TopMost = true; m_moveCmdDlg.ShowInTaskbar = false; m_moveCmdDlg.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_moveCmdDlg.Hide(); m_moveCmdDlg.Dispose(); m_moveCmdDlg = null; if (m_highlightSet != null) { this.ClearHighlight(); } if (m_UCS != null) { if (m_UCS.Visible == true) { m_UCS.Visible = false; } } base.StopCommand(); }
public MoveCmd() { m_moveCmdDlg = null; m_selectFace = null; m_selectiFeature = null; m_UCS = null; m_previewClientGraphicsNode = null; m_pointGraphics = null; m_graphicsCoordinateSet = null; m_graphicsColorSet = null; m_graphicsColorIndexSet = null; m_highlightSet = null; }