From the course: Revit Architecture: Family Editor (Imperial and Metric)

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Using a formula to prevent common errors

Using a formula to prevent common errors - Revit Tutorial

From the course: Revit Architecture: Family Editor (Imperial and Metric)

Start my 1-month free trial

Using a formula to prevent common errors

- [Instructor] In this video, I want to add just a little bit more smart to our canopy family. Everything will work great with our family as long as we put in the proper number of elements, and what I mean by that is we're using arrays to drive both the canopy in the brackets, and arrays in Revit need to be at least two elements, you can't have few than two in your array. So if you drop the quantity below two, it's going to generate an error, and the family will fail. So, we can solve that problem really simply by putting in a formula in our array quantity that will trap for that error. So it'll basically look for a situation where we're fewer than two, and then it will force the quantity to remain at two. So, how are we going to do that? Well, what we're going to need is another integer parameter, another parameter that's going to drive the array, and then, we're going to evaluate the value of that parameter first, and…

Contents