How to Manage Rebar Numbering with Dynamo

Computational Design

By Tomasz Fudala

Before we move into the Dynamo part let me quickly highlight rebar numbering and partitioning in Revit.

In Revit, numbering allows identical reinforcement elements to be matched for schedules and tags.

Partitioning in Revit gives you the ability to define a common parameter for reinforcing elements within a certain construction sequence. Rebar elements are automatically given a unique number within same partition based on their type, shape & geometrical parameters.

Partitioning for reinforcement identification serves a number of organizational purposes depending on how a building is designed or how it will be constructed. Any rebar, rebar set, or fabric sheet instance in a model can only be assigned to one partition.

The number for a rebar or fabric sheet instance as well as its partition may be viewed in the Properties palette under Construction.

You can use the Reinforcement Numbering dialog to make adjustments to rebar numbering sequences.
Using this dialog you ran quickly and easily rename your partitions and renumber rebar elements within a specific partition.

The Minimum number of digits for reinforcement numbers option specifies the minimum number of digits to display in a sequence. For example, when set to 3 digits; rebar number 2 displays as 002.

Minimum number of digits for reinforcement numbers

The Remove Gaps option becomes active when one or more gaps exist in a sequence. The checkbox removes gaps in the numbering sequence of rebar and fabric sheets in a partition.

Remove Gaps

This is a very convenient tool to manage rebar numbering however sometimes we need apply some specific, more sophisticated rules for how our rebars should be numbered. This is a common problem for many structural detailers.

For example, let’s image a situation where we would like to have all rebars numbered within the same partition from the shortest rebar to the longest one…

If you have already started thinking how you could do this in Revit, I have to tell you to stop. This is an instance where Dynamo for Revit comes in handy and is the right tool at the right time!

Let me show you how helpful Dynamo is for this issue.

I made a few assumptions:

  • In my Dynamo script I want to select all rebars from a specified partition automatically (this is so there is no need to select any rebars in my model).
  • All rebars from the given partition will be renumbered from the shortest rebar to the longest one.
  • I want to be able define a starting number of the shortest rebar.

Because the Rebar Number parameter is read-only, first I need to create a project parameter which I call “New Rebar Number” and then I end up with the following Dynamo script:

As the first step I need to select all rebars from a partition I specify.

Next, it’s time to get information about the lengths of my rebars. Even though my project is metric I need to make a units conversion to have them presented in millimeters rather than in feet.

Knowing lengths of my rebars, now I am able to sort the list of rebars by lengths.

… and finally it’s time to renumber the rebars:

Now I can create a rebar bending schedule based on the New Rebar Number parameter!!

For more posts on Revit’s rebar features, check out these past articles on BIM and Beam:

@tomekf

Related Articles

Add comment

6 comments

  1. tomragnarsson

    Hi, Tomasz. Great article. Is there a simple way to have the partitions in a drop-down list that can be accessed via the Dynamo Player? I've been searching for something like that, but have not come across it yet. Tom

  2. I try to send you this link of my drive https://drive.google.com/open?id=1f04D1FCY_nkHUbI4qMUwKdByMy4NNrH2

    1. Tomasz Fudala
      Tomasz Fudala

      This is a standard Code Block I renamed. Just double click in the Dynamo viewer.

  3. I don't know to send screenshot in this blog .

  4. Why don’t I search ‘ Partition Name ‘ in dynamo 1.3.0 ? I use revit 2016 and revit 2018. please help me to explain this problem .

    1. Tomasz Fudala
      Tomasz Fudala

      Could you specify a bit more the issue you have? Any screenshot would be welcome.

Thanks for visiting the Revit blog. Subscribe to keep current on product updates, the Revit public roadmap, and a wide variety of topics in BIM.

Subscribe to keep up with Revit

© 2021 Autodesk Inc. All rights reserved