Std DuplicateSelection/ru: Difference between revisions

From FreeCAD Documentation
No edit summary
(Created page with "==Программирование==")
Line 39: Line 39:
* Duplicate labels are allowed if {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → Document → DuplicateLabels}} is set to {{TRUE}}. This setting can also be changed in the [[Preferences_Editor#Document|Preferences Editor]].
* Duplicate labels are allowed if {{MenuCommand|Tools → Edit parameters... → BaseApp → Preferences → Document → DuplicateLabels}} is set to {{TRUE}}. This setting can also be changed in the [[Preferences_Editor#Document|Preferences Editor]].


==Программирование==
==Scripting==


The '''Std DuplicateSelection''' command can be applied after selecting one or more objects in the [[Tree_view|Tree view]]:
The '''Std DuplicateSelection''' command can be applied after selecting one or more objects in the [[Tree_view|Tree view]]:

Revision as of 19:19, 10 September 2021

Std DuplicateSelection

Системное название
Std DuplicateSelection
Расположение в меню
Правка → Дублировать выбранное
Верстаки
Все
Быстрые клавиши
Нет
Представлено в версии
-
См. также
Std Cut, Копировать, Вставить

Описание

The Std DuplicateSelection command duplicates objects within the active document.

Применение

  1. Select one or more objects.
  2. Select the Edit → Duplicate selected object option from the menu.
  3. If the objects have dependencies that have not been selected, a dialog box will prompt you to specify which should be included.

Примечания

  • FreeCAD will automatically change the internal names and, depending on the preferences, labels of objects to avoid name conflicts.

Настройки

  • Duplicate labels are allowed if Tools → Edit parameters... → BaseApp → Preferences → Document → DuplicateLabels is set to true. This setting can also be changed in the Preferences Editor.

Программирование

The Std DuplicateSelection command can be applied after selecting one or more objects in the Tree view:

FreeCADGui.runCommand('Std_DuplicateSelection')

The selection can be manual (by using the mouse), or via the Python console.
To know more about selecting objects programmatically, refer to Selection methods.