Wall type cleanup

I am cleaning up a project from someone who used Revit like “CAD++”(13 floors all in separate models, random thickness walls such as 1 127/256"). I have 80+ types of walls. I have been tasked with rounding up or down to the nearest 1/2" thickness for the walls. They are wanting all the walls to be as generic as possible. How would I use dynamo to force all the random wall types to the appropriate wall types?

  • Decide on your new wall thicknesses and put them in the model
  • Measure all old walls widths decide if you’re going to change them to the nearest new wall size or the larger/smaller new wall size
  • Assign new wall type dependent on your output of the last step
  • Change walls
1 Like

Something like this would be a good starting point

  1. Get all walls
  2. Get the type for each wall
  3. Get the type’s thickness
  4. Divide the thickness by 1/24 (or 1/2 of 1/12 because Revit is decimal feet under the hood)
  5. Round that value to the nearest whole number and multiply it by 1/24.
  6. Generate a new wall type for each unique value by either copying your ‘default type’ or creating new types from scratch
  7. Change all wall types for each group of walls to the new new type.
1 Like

I don’t get your steps 4 and 5 …

If I have a 295mm wall in the model it’s gunna be rounded up to 300mm…

Why would I divide it by 1/24 just because Revit uses imperial?

Because the intent was to round to the nearest 1/2 inch, and 1/2 /12 is 1/24.

1 Like

Ahhh! Your wording threw me. :smiley:

1 Like

Thank you guys, I’ll start trying to put this together. I’ll keep you posted as its developed.