Using Activities

Activities are associated to elements and define how the entities of the CustomBlock definition change when you manipulate the CustomBlock reference in the drawing.

When adding an activity to a CustomBlock definition, you need to specify the following:

Activities display their icon plus this bolt icon . Clicking the activity icon displays the selection set.

Elements that do not have associated activities display this icon . Double-clicking the warning icon displays the activities that you can associate to the element.

Use the CBActivityIcon command to display or hide the activity icons in the Block Editor. See Turning Activity Icons On and Off.

You can apply multiple activities to an element. The software groups all activities into an Activity toolbar.

Hovering the mouse cursor over an activity icon highlights the following:

Note: The activity icon does not appear in the Block reference.

Example:

Hovering over a Stretch activity highlights the following:

  1. Linear element
  2. Element grip point that lets you perform the activity
  3. Activity icon (in this example, Stretch)
  4. Stretch frame

The software groups activities according to the elements that can use them.

Block Editor activities and associated elements:

Activity Icon Transformation Available elements
Move Applies translation Point, Linear, Polar, XY
Scale Applies scaling Linear, Polar, XY
Stretch Stretches entities using stretch points from the specified area Point, Linear, Polar, XY
Polar Stretch Applies stretching and rotation Polar
Rotate Applies rotation Rotation
Mirror Applies mirror transformation Mirror
Pattern Creates entities across element directions with the specified offset. For an XY element, the pattern uses the X and Y directions. Linear, Polar, XY
Table Applies the value set to other elements Table

Related Topics

CustomBlocks Basics

About CustomBlock Elements

Turning Activity Icons On and Off

Parent Topic

Applying Activities to CustomBlock Definitions