Std Delete: Difference between revisions

From FreeCAD Documentation
(Marked this version for translation)
(Removed Std prefix in Docnav as discussed)
Line 4: Line 4:
<!--T:7-->
<!--T:7-->
{{Docnav
{{Docnav
|[[Std_SelectAll|Std SelectAll]]
|[[Std_SelectAll|SelectAll]]
|[[Std_SendToPythonConsole|Std SendToPythonConsole]]
|[[Std_SendToPythonConsole|SendToPythonConsole]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_SelectAll.svg
|IconL=Std_SelectAll.svg
Line 52: Line 52:
<!--T:8-->
<!--T:8-->
{{Docnav
{{Docnav
|[[Std_SelectAll|Std SelectAll]]
|[[Std_SelectAll|SelectAll]]
|[[Std_SendToPythonConsole|Std SendToPythonConsole]]
|[[Std_SendToPythonConsole|SendToPythonConsole]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_SelectAll.svg
|IconL=Std_SelectAll.svg

Revision as of 09:20, 29 December 2020

Std Delete

Menu location
Edit → Delete
Workbenches
All
Default shortcut
Del
Introduced in version
-
See also
None

Description

The Std Delete command deletes selected objects.

Usage

  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.

Scripting

See also: FreeCAD Scripting Basics.

To delete an object use the removeObject method of the document object.

import FreeCAD

FreeCAD.ActiveDocument.removeObject("myObjectName")