All about grouping elements in Cacoo

All about grouping elements in Cacoo

In Cacoo, you can use a variety of shapes and imported images in your diagrams.

There is a ‘Group’ feature that allows you to merge multiple shapes or elements into one selectable and editable field. As a group like this, they can be moved around more easily, and styles can be applied collectively instead of each individually.

To help, we’ve put together a quick tutorial about using grouped elements in Cacoo, including:

Understanding these techniques will help you to use Cacoo more effectively and create diagrams that look exactly like you imagined.

How to group multiple elements

  1. Select multiple elements that you wish to combine into a group. You can select multiple elements by holding down the Shift key and clicking them one by one, or by clicking and dragging a rectangular selection over them.
  2. Choose the ‘Group’ tool in the editor menu, or use Ctrl + G (Win), Cmd + G (Mac) to group the selected elements together.

Select more than one element, and the ‘Group’ function will be available.

To ungroup elements, use Ctrl + U (Win), Cmd + U (Mac), or choose ‘Ungroup’ in the editor menu.

How to change the relative position of an element in a group

  1. Click on the group once to select it (you’ll notice a blue box appear around it).
  2. Click again on the individual element you want to move.
  3. Mouse over the + sign in the middle of the element. When the pointer changes to four-directional arrows, click and drag the element to move it.
  4. When you release the element, its relative position has changed but it stays as part of the group.

What happens when you resize a group of elements?

When you resize a group, each element’s size will be adjusted proportionally to the overall group. In addition, each element will keep its relative position in the group.

Resizing the group may distort the individual elements in it.

To preserve the group’s width to height ratio, simply hold Shift while resizing.* This ensures that the ratio won’t be affected by size changes.

*Note: If it’s an imported image or the group contains an imported image, you do not need to hold Shift while resizing, to keep its original ratio. Holding Shift to maintain ratio only applies to Cacoo shapes.

Using resizing constraints to maintain the size of an element in a group

In some cases, you may want to preserve the size of an individual element while resizing the group.

In this example, the size of the visitor icon is fixed at the same size when the group is resized.

To keep an element in the group at the same size:

  1. Click the group once to select it.
  2. Click again on the element whose size you are preserving.
  3. In the editor menu, choose the ‘Resizing constraints’ option.
  4. Under the ‘Fix’ column, click on the checkboxes to fix the height (H) and width (W) of the element. This will keep the element at a fixed height, width, or both when the group is resized.


When the checkboxes are enabled, a lock icon and green lines appear on the individual element, indicating that its height and width are locked.

Pin an element in a group to maintain its margin

Sometimes, you may want to maintain an element’s margin length in the group during resizing. This is where pinning comes in handy.

Check out the images below as an example.

In image A, the orange rectangle is not pinned, so its margins decrease proportionally when the group is made smaller.

In image B, the left and right sides of the orange rectangle are pinned, so it maintains a constant margin when the group is resized. 

How to pin an element in a group:

  1. Follow the same steps 1-3 above to open the ’Resizing constraints’ option.
  2. Under the ‘Pin’ column, the settings are for pinning the element to the group margins.
  3. Click on the respective dots to pin the left, right, top, or bottom margins of the element.

Summary

  • To maintain the size of an element in a group, use the Fix H and/or W options under ‘Resizing constraints’ in the editor menu.
  • To maintain the margin of an element in a group, pin it to the top, bottom, left, or right sides.

Now that you know the ins and outs of element grouping, give it a try in your Cacoo diagrams!

Soo Hian Soo Hian is a Community Manager at Nulab — the creators of Cacoo, Backlog, and Typetalk. He likes technology and learning new things.