SDS2 Weld Report with Model Selection & Load Selection

Pick members in the SDS2 model or load a saved selection, then build a weld report by size and type with total weld length in feet and inches.

By BIM Flow AI3 min readReport Forge

Sometimes you don’t want a zone or a sequence; you want these members, the ones you’re looking at. This tutorial covers Report Forge’s two interactive selection modes, Model Selection and Load Selection, while building a weld report: weld size, weld type, and total weld length, formatted in feet and inches.

Step 1: Select members in the model

Add a Member Selection node and set it to Model Selection. This lets you pick members directly in SDS2 when the step runs.

Member Selection with its selection options, including Model Selection and Load Selection

Execute the step, click two columns in the model, and press Enter. The outputs now hold the member data for those two columns.

Step 2: Keep only the welds

Member data has far more than we need. Add Property Selection and drag welds into the list. Only that property is kept.

Property Selection keeping only the welds property

Execute and look at the outputs. welds is a list of welds on each member, which is awkward to report on directly.

Step 3: Expand the welds

Open Arrange the data, add Expand Items, and expand welds. Each weld becomes its own top-level item, which is what we want.

Expand Items turning the welds list into individual weld objects

Step 4: Group by size and type

Add Group By with two fields: weld size, then weld type. Every size/type combination becomes a group.

Group By with weld size and weld type

Step 5: Flatten, and keep every length

Add Flatten List and choose Remove repeated items. Inside a group most values are the same (size, type, contour), and we only need one copy of each.

The exception is length: every weld in the group has its own, and we want to add them all up. So add an override for length. Repeated values are removed everywhere except length, which stays as the full list.

Flatten List removing repeated items, with an override that keeps every weld length

Execute it and you’ll see one object per size/type with a list of lengths, plus the unique GUID of every weld.

Step 6: Create the report, sum the lengths

Add Create Report and three columns:

  • Weld Size: the arrow-side weld size
  • Weld Type: the arrow-side weld type
  • Total Length: the list of lengths, wrapped in a little Python

Create Report with Weld Size, Weld Type and Total Length columns

For the length, sum() adds the list into one number of inches, and dim_print() turns that into feet and inches. The finished value looks like {{ dim_print(sum(json.<group>.arrow_length)) }}. This dim_print is Report Forge’s own helper, not the SDS2 built-in, and it outputs feet and inches.

Title the report Weld Report, run it, and save the file.

The Weld Report in Excel, with a total length for each weld size and type

Step 7: Switch to Load Selection

Model Selection asks you to click members every time. If you already have a saved selection in SDS2, switch the Member Selection node to Load Selection instead.

Member Selection switched to Load Selection

Now when you run the report, SDS2’s own selection dialog opens. Pick members, choose your saved selection, and the same weld report runs on it.

When to use which

Mode Best for
Model Selection Quick, one-off checks on the members you’re looking at
Load Selection Repeatable reports on a selection you’ve saved in SDS2
Zone / Sequence Reports that follow the job’s structure

Get this report

This report (Member Selection & Load Selection) is in the free Report Forge report pack, and every report in the series is included with Report Forge. For more Group By and Flatten practice, see the field bolt report.