version 6.0
DR DELETE (area; scope)
| Parameter | Type | Description | |
| area | Longint | 4D Draw area | |
| scope | Longint | -1=All | |
| 0=Selected | |||
| >0=Object ID |
Description
The command DR DELETE deletes the objects in area described by scope.
If scope equals -1, DR DELETE deletes all objects in the document.
If scope equals 0, DR DELETE deletes the selected objects.
If scope is greater than 0, it must be equal to a specific object's ID; the command deletes that object. If the object does not exist, DR Error returns error number 2.
Example
The following example deletes the object in Area whose ID is 5.
DR DELETE (Area;5)
See Also