Std Delete/ru: Difference between revisions

From FreeCAD Documentation
(Created page with "==Программирование==")
(Created page with "Для удаления объекта используйте метод {{incode|removeObject}} объекта document.")
Line 34: Line 34:
{{Emphasis|Смотрите так же:}} [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов в FreeCAD]].
{{Emphasis|Смотрите так же:}} [[FreeCAD_Scripting_Basics/ru|Основы составления скриптов в FreeCAD]].


To delete an object use the {{incode|removeObject}} method of the document object.
Для удаления объекта используйте метод {{incode|removeObject}} объекта document.


{{Code|code=
{{Code|code=

Revision as of 19:26, 10 September 2021

Удалить

Системное название
Std_Delete
Расположение в меню
Правка → Удалить
Верстаки
Все
Быстрые клавиши
Del
Представлено в версии
-
См. также
Нет

Описание

The Std Delete command deletes selected objects.

Применение

  1. Select one or more objects.
  2. There are several ways to invoke the command:
    • Select the Edit → Delete option from the menu.
    • Select the Delete option from the Tree view context menu or 3D view context menu.
    • Use the keyboard shortcut: Del.

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

Смотрите так же: Основы составления скриптов в FreeCAD.

Для удаления объекта используйте метод removeObject объекта document.

import FreeCAD

FreeCAD.ActiveDocument.removeObject("myObjectName")