DR UNGROUP

4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next

version 6.0


DR UNGROUP (area; scope; level)

ParameterTypeDescription
areaLongint4D Draw area
scopeLongint-1=All
0=Selected
>0=Group ID
levelIntegerNumber 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

DR Get ID, DR GROUP.


4D - Documentation   Français   English   German   4D Draw 2004, Command Theme List   4D Draw 2004, Command Alphabetical List   Back   Previous   Next