//--------------------------------------------------------------------------------------------------

        public void CopyToClipboard()
        {
            if (CurrentTool != null)
            {
                CurrentTool.CopyToClipboard();
            }
            else
            {
                InteractiveContext.Current.DocumentController.CopyToClipboard(Selection.SelectedEntities);
            }
        }