Std Delete: Difference between revisions

From LabRPS Documentation
Jump to navigation Jump to search
(Created page with "{{Docnav |SelectAll |SendToPythonConsole |Std Edit Menu |IconL=Std_SelectAll.svg |IconR=Std_SendToPythonConsole.svg |IconC=Labrps.svg }} {{GuiCommand |Name=Std Delete |MenuLocation=Edit → Delete |Phenomena=All |Shortcut={{KEY|Del}} }} ==Description== The '''Std Delete''' command deletes selected objects. ==Usage== # Select one or more objects. # There are several ways to invoke the command: #* Selec...")
 
No edit summary
 
Line 1: Line 1:
{{Docnav
{{Docnav
|[[Std_SelectAll|SelectAll]]
|[[Std_SelectAll|SelectAll]]
|[[Std_SendToPythonConsole|SendToPythonConsole]]
|[[Std_DlgPreferences|Preferences...]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_SelectAll.svg
|IconL=Std_SelectAll.svg
|IconR=Std_SendToPythonConsole.svg
|IconR=Std_DlgPreferences.svg
|IconC=Labrps.svg
|IconC=Labrps.svg
}}
}}
Line 42: Line 42:
{{Docnav
{{Docnav
|[[Std_SelectAll|SelectAll]]
|[[Std_SelectAll|SelectAll]]
|[[Std_SendToPythonConsole|SendToPythonConsole]]
|[[Std_DlgPreferences|Preferences...]]
|[[Std_Edit_Menu|Std Edit Menu]]
|[[Std_Edit_Menu|Std Edit Menu]]
|IconL=Std_SelectAll.svg
|IconL=Std_SelectAll.svg
|IconR=Std_SendToPythonConsole.svg
|IconR=Std_DlgPreferences.svg
|IconC=Labrps.svg
|IconC=Labrps.svg
}}
}}

Latest revision as of 14:21, 26 October 2024

Std Delete.svg Std Delete

Menu location
Edit → Delete
Phenomena
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 → Std Delete.svg Delete option from the menu.
    • Select the Std Delete.svg Delete option from the Tree view context menu.
    • Use the keyboard shortcut: Del.

Scripting

See also: Autogenerated API documentation and LabRPS Scripting Basics.

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

import LabRPS

LabRPS.ActiveDocument.removeObject("myObjectName")