Std Delete

From LabRPS Documentation
Revision as of 13:43, 26 October 2024 by LabRPS (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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")