Drawing groups improve the convenience of creating systems in PLC-Lab. These are predestined for the following tasks and more:
You can find the section "drawing group" in the action list of PLC-Lab. In this section actions are listed which are required for drawing groups. This includes, for example, creating a drawing group, dissolving a drawing group and separating individual objects from such a group.
The following steps are necessary to create a drawing group:
These steps are carried out in the example.
When objects are organized in a draw-group, they are surrounded by a rectangular frame that symbolizes the drawing group.
To select a drawing group, click on one of the objects of the group in the non-selected state.
This causes the selection thumbs to appear at the corner points of the group.
When the drawing group is selected, you can move it. To do this, click on an area in the group in which an object is located.
To select an object in a drawing group, first select the group. Next, you can select the target object by clicking on it.
The example shows that the group is selected first, then the red rectangle is clicked on when the group is selected. This also causes the selection thumbs to appear on the selected rectangle.
When an object is selected in a drawing group and the selection thumbs are visible, you can move it with the mouse or keyboard.
When you move the object, the dimensions of the drawing group also change at the same time.
To switch a drawing group to rotation mode, double-click an object of the drawing group while the drawing group is not selected. Then the thumbs indicate that the drawing group can be rotated. As with normal objects, you can also rotate in 15° steps by pressing the Shift key while rotating.
You can see that all elements of the drawing group rotate with the rotation point in the center of the drawing group. If you click on a free area of the drawing board after the rotation process, you deselect the drawing group and exit rotation mode.
When the drawing group is selected, you can activate the rotation mode of an object by double-clicking on the object in the drawing group. This is then signaled by the thumbs on the object. Now you can rotate the object with the mouse. When you press the Shift key, the rotation takes place in 15° steps.
You can also rotate several objects at the same time in a similar way. To do this, select the objects you want to rotate (hold down the Shift key while clicking), then double-click on one of the selected objects. All selected objects then switch to rotation mode.
If you want to dissolve a drawing group, proceed as follows:
This dissolves the drawing group and removes the frame of the drawing group.
If there were objects in the drawing group that were already in their own drawing group when the drawing group was created, these groups are now visible again.
In the following example, a drawing group is dissolved. The rectangle objects and ellipse objects were already organized in a separate group before the drawing group was created. These groups are now restored when the parent drawing group is dissolved.
To separate individual objects from a drawing group, proceed as follows:
The object is then no longer part of the drawing group. You can also use this action with several objects at the same time.
If you want to add objects to an existing drawing group, proceed as follows:
When you use the mouse to copy the objects in a drawing group (see also: Copy with mouse), the new object is also an element of the drawing group. This also applies when copying several objects.
When you copy an object using the clipboard (copy & paste), i.e. with the keys [CTRL] + [C] and [CTRL] + [V], the new object is not part of the drawing group. The same applies to duplicating using the keys [CTRL] + [D].
When copying an entire drawing group, the same actions apply as when copying objects. You can copy using the mouse or keyboard.
See also: Copying objects