Field Bolt Report by Sequence in SDS2 with Report Forge

Build an SDS2 field bolt report by sequence: group bolts by type, diameter, length and finish, count them with len(), and export to Excel.

By BIM Flow AI3 min readReport Forge

When a sequence ships, the field crew needs to know which bolts to bring: how many of each type, diameter, length and finish. This tutorial builds that field bolt report by sequence in Report Forge with five nodes, including a multi-field Group By and a Flatten step that turns the groups into clean rows.

What the finished report shows:

  • Bolt type (for example A325N or A307)
  • Bolt size and length, in feet and inches
  • Finish
  • Quantity of each combination

Step 1: Select bolts by sequence

Start from Item Selection with a Select Bolts node and set it to select by Sequence. Execute the step and pick sequence 1 in SDS2.

The Select Bolts node set to select by sequence

The outputs now hold every bolt in that sequence, both shop and field. We only want the field bolts.

Step 2: Keep only field bolts

Open Refine the list and add a Filter. Drag in the field_bolt property. By default the condition is has value; change it to is true.

A Filter node keeping bolts where field_bolt is true

Execute the step and the outputs shrink to just the field bolts.

Step 3: Group by type, diameter, length and finish

This is a bigger Group By than in the other tutorials. Open Arrange the data, add Group By, and add four fields in order:

  1. bolt type
  2. diameter
  3. length
  4. finish

The Group By node with type, then diameter, then length, then finish

Every unique combination becomes its own group, which is exactly what a field bolt list is.

Step 4: Flatten the groups into rows

Grouped data is nested, so add Flatten List from Arrange the data and choose Remove repeated items. Inside each group every bolt shares the same type, diameter, length and finish, so we don’t need five copies of each value; flattening keeps one.

Flatten List with Remove Repeated Items, producing one object per bolt group

Values that do differ between bolts, like each bolt’s GUID, are kept as a list. We’ll use that in a moment.

Step 5: Create the report

Add Create Report, title it Field Bolts By Sequence, and add columns for bolt type, bolt size, length, finish and quantity. As you drag fields in, Report Forge fills in the full path for each value, including the group it came from.

Create Report with Bolt Type, Bolt Size, Length, Finish and Quantity columns

Two small Python touches finish it off:

  • Quantity. Every bolt has a unique GUID, and the flattened group keeps all of them as a list. Wrapping that list in len() gives the count. The expression looks like {{ len(json.<group>.guid) }}.
  • Feet and inches. Wrap the size or length in dim_print() if you’d rather read 1 1/2” than 1.5.

The result

Run the report, pick sequence 1, choose where to save, and open the Excel file:

The Field Bolts By Sequence report in Excel, listing bolt type, size, length, finish and quantity

One row per bolt combination, with a quantity, ready to hand to the field.

Make it yours

  • Another sequence: run it again and pick a different sequence. No changes needed.
  • Shop bolts instead: flip the filter to field_bolt is false.
  • Run it automatically: assign the report to the project in Report Forge Server and it runs whenever the model changes.

Get this report

The Field Bolt Report is in our free Report Forge report pack, and every report in this series is included with Report Forge. Next up: the weld report, which uses the same Group By and Flatten pattern on welds.