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

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