BIM World
A Professional BIM Learning Platform


BIM Q&A | Tutorial on Creating Water Barrier Dynamic Components in SketchUp

This article is from the WeChat official account: Meichuan Xinyifu, authored by Bear Boy.

Purpose

With the cabinets and countertops completed, it’s essential to create water blocking strips for the remaining sections. This task is a great example of how using dynamic components can speed up cabinet design, especially when aiming for efficiency.

1. Structural Analysis

Important Note: Although it seems simple at first, this task was overturned multiple times and turned out to be even more complex than designing a cabinet!

Initially, I assumed the water barrier was a long strip about 20mm thick and 45mm high. However, after sketching it out, I realized it wasn’t that straightforward. Comparing the physical water barriers on cabinets at home revealed its complexity.

The water barrier is a long strip featuring a rounded arc on one side, as shown below.

Water Barrier with Rounded Arc

This design means the component has a specific orientation, with an arc of a particular size. This arc size needs to be dynamically adjustable, which could be challenging due to possible variations in thickness and height. Even if the arc size remains constant, there may be cases where thickness and height are fixed but the arc size changes.

The initial approach divided the water barrier’s cross-section into three parts: two rectangles and a quarter-circle arc sector.

Water Barrier Cross-section Breakdown

As Confucius said, solving one problem often leads to another. After addressing thickness, height, and curvature changes, a new issue emerged: not all water barriers have flat ends. There are three possible end shapes—flat, inward 45°, and outward 45° connections.

For flat ends, the previous division works fine. However, for inward and outward 45° connections, the division only accounted for one 45° angle, which doesn’t meet dynamic requirements.

After several attempts, the following modular combination was proposed:

Water Barrier Modules with Internal 45° Connections

This example shows both ends internally connected at a 45° angle. Considering both ends could also be externally connected at 45°, an additional six modules were added, bringing the total to fifteen modules.

Complete Set of Water Barrier Modules

Note: The 45° angled ends were not combined through rotation and offset to reduce module count. Testing showed size deviations after multiple rotations, likely due to rounding errors during calculations. Therefore, separate modules were designed for each configuration, hiding unused ones as needed.

2. Production Process

2.1 Drawing the Modules

Based on the decomposition of the 45° angles at both ends shown below, draw each module separately and group them with the corresponding names:

Drawing and Grouping Water Barrier Modules

Then add the external 45° angle module, grouping it accordingly:

Adding External 45° Angle Module

The origin point of each module is the corner vertex closest to the 3-axis origin. If the position is off after drawing, you can adjust the origin using the coordinate axis tool.

Group all these modules under the name “Water Barrier”. Then convert them into components within this group.

Water Barrier Group Converted into Components

Water Barrier Components Overview

2.2 Adding Attributes

Next, add the following properties to the dynamic water barrier component:

Adding Properties to Dynamic Component

Setting Properties for Dynamic Component

Refer to this diagram to configure the attributes:

Attribute Configuration Example

Note: In this example, the component is renamed “DST” instead of the default “water blocking bar.” This avoids using parentheses in names, simplifying parameter references in functions. If Chinese characters appear in parameter references, they must be enclosed in parentheses to prevent errors.

2.3 Writing Functions

Assign attributes to each module and write functions as shown below:

Writing Functions for Modules

Function Explanation:

  1. Set the position and length for each module’s appearance.
  2. Use the Hidden behavior function to control module visibility based on the current option. For example, the formula =CHOOSE(DST!Z02ZuoJiao, TRUE, FALSE, TRUE) means that when the left end is set to “inner 45° joint angle,” the module is visible.
  3. When the Hidden function returns FALSE, the module is shown; when TRUE, it is hidden.
  4. The CHOOSE function uses the first parameter’s return value as an index to select one of the subsequent parameters. In this case, DST!Z02ZuoJiao has three options: flat head (1), inner 45° joint (2), and outer 45° joint (3). Selecting “inner 45° joint” returns 2, so the CHOOSE function returns FALSE, making the module visible.

Functions for other modules are set similarly, as shown in the following diagrams:

Module Function Example 1

Module Function Example 2

Module Function Example 3

Module Function Example 4

Module Function Example 5

Module Function Example 6

Module Function Example 7

Module Function Example 8

Module Function Example 9

Module Function Example 10

Module Function Example 11

Module Function Example 12

Module Function Example 13

Module Function Example 14

3. Final Results

Here are some examples of the finished water barrier components in action:

Water Barrier Component Example 1

Water Barrier Component Example 2

Water Barrier Component Example 3

Water Barrier Component Example 4

xuebim
Follow the latest BIM developments in the architecture industry, explore innovative building technologies, and discover cutting-edge industry insights.
← Scan with WeChat
Like(0) 打赏
BIM WORLD » BIM Q&A | Tutorial on Creating Water Barrier Dynamic Components in SketchUp

Comment Get first!

Must log in before commenting!

 

BIM World, A Professional BIM Learning Platform

Stay updated on the latest architecture trends and share new building technologies.

Contact UsAbout Us

觉得文章有用就打赏一下小编吧

非常感谢你的打赏,我们将继续提供更多优质内容,让我们一起创建更加美好的网络世界!

支付宝扫一扫

微信扫一扫

Account Login

By signing in, you agree toUser Agreement

Sign Up