Skip to content
07-848 2005

SketchUp, SketchUp desktop

Repeat a sub-component within a dynamic component (2 dimensions)

Repeat a sub-component, such as a tile within a floor, as you scale a dynamic component in 2 dimensions, X and Y.

In SketchUp, you can repeat a sub-component, such as a tile within a floor, as you scale a dynamic component in 2 dimensions, X and Y.

The image below shows the Floor component with 1 Tile sub-component. It looks like a single tile. The Tile sub-component repeats when you use the Scale tool to scale the Floor component in the X and Y directions.

Floor component containing a single Tile sub-component before scaling.

The image below shows the scaled Floor component with 8 copies of the Tile sub-component.

Scaled Floor component showing the original Tile and eight copies arranged in a three-by-three grid.

Follow these steps to repeat a sub-component within a parent component in two dimensions.

  1. Create a component with one sub-component, such as a floor with one tile.
  2. Context-click the component to open its context menu.
  3. Select Dynamic Components > Component Attributes to open the Component Attributes dialog box.
  4. Make sure the attributes for all components are visible.
  5. Create a 'Columns' attribute in the Floor component to hold the number of rows in your dynamic component.
  6. Create a 'Rows' attribute in the Floor component to hold the number of rows in your dynamic component.
  7. Create an attribute in the Floor component to hold the size of the repeating sub-component. This example uses 'TileSize'.
  8. Set 'TileSize' to a value, such as 12.
  9. Set the Tile sub-component's 'LenX' and 'LenY' attributes to the size stored in the parent component. For the Floor Tile sub-component, set 'LenX' to Floor!TileSize and 'LenY' to Floor!TileSize.
  10. Enter a formula beside the Floor component's 'Columns' attribute to calculate the number of columns. Base it on the Tile sub-component's size and the Floor component's overall size. For example:

=CEILING(LenX/TileSize)

  1. Enter a formula beside the Floor component's 'Rows' attribute to calculate the number of rows. Base it on the Tile sub-component's size and the Floor component's overall size. For example:

=CEILING(LenY/TileSize)

  1. Add the Copies attribute to the Tile sub-component.
  2. Enter a formula beside 'Copies' to calculate the number of copies. Multiply the rows by the columns, then subtract one for the original sub-component. For example:

=Floor!rows*Floor!columns-1

  1. Set the position of each repeating sub-component in its column and row. Calculate a multiplier for each row and column, then multiply it by the sub-component's size to find its X and Y position.
    1. Create an attribute in the Tile sub-component to hold the row multiplier, such as myRow.
    2. Enter a formula beside 'myRow' to work through each copy and calculate its row. For example:
    3. Use =FLOOR(COPY/Floor!columns). If Copy equals 7 and the object has 3 columns, myRow equals 2. Rows start at 0, so 2 represents the 3rd row.
    1. Enter a formula beside 'myColumn' to work through each copy and calculate its column. For example:
    2. Use =COPY-(myRow*Floor!columns). If copy equals 7, myRow equals 2 from the previous calculation and the object has 3 columns, myColumn equals 1. Columns start at 0, so 1 represents the 2nd row.
    1. Enter a formula beside the Tile sub-component's 'X' attribute to calculate its position. For example:

X =myColumn*floor!tilesize Enter a formula beside the Tile sub-component's 'Y' attribute to calculate its position. For example:

Y =myRow*floor!tilesize The image below shows the Component Attributes dialog box with all Floor and Title attributes.

Component Attributes dialog showing Floor columns, rows and TileSize, plus Tile Copies, myColumn and myRow attributes.

Procadsys customer support

Still need help?

Licences, renewals and billing

Our New Zealand team looks after your SketchUp licences, renewals and invoices.

Monday to Friday, 9:00 am to 4:30 pm NZ time, excluding New Zealand public holidays.

Technical problems

Technical support from our New Zealand team is available with a current Procadsys SketchUp Plus subscription: Pro Plus, Pro Scan Plus, Pro Civil Contractor Plus, Pro Advanced Workflows Plus or Studio Plus.

Initial response within one business day.

On another SketchUp plan? Technical problems go to Trimble support.