version 6.0
DR UNGROUP (area; scope; level)
Parameter | Type | Description | |
area | Longint | 4D Draw area | |
scope | Longint | -1=All | |
0=Selected | |||
>0=Group ID | |||
level | Integer | Number of levels to ungroup |
Description
The command DR UNGROUP ungroups the objects in area described by scope.
If scope equals -1, DR UNGROUP ungroups all objects in the document.
If scope equals 0, DR UNGROUP ungroups the selected objects.
If scope is greater than 0, it must be equal to a specific group's ID and that object is ungrouped. If the object does not exist, DR Error returns error number 2.
level controls how many layers of grouping are removed.
If level equals 1, DR UNGROUP ungroups only first level groups.
If level equals 2, the command ungroups first level groups and any groups within those objects.
If level equals -1, the command ungroups all levels of groups.
Choosing Ungroup from the Arrange menu is equivalent to ungrouping one level.
Example
The following example ungroups all objects at all levels in Area.
DR UNGROUP (Area;-1;-1)
See Also