Revit doesn’t like to deal with an array that has 1 instanced element or component (although there is one exception). The array will break. So, the way to handle it is to have a separate single instance of a component for that scenario, and then the actual Array for whenever you need two or more instances.
To accomplish this, you need
some formulas to hide or show the required elements, and
another formula to maintain the array at 2 or more.
It looks something like this:
That particular example also caters for some other ‘switches’ that may turn off the array (notice the if-or formula.)
In the Revit 2015 Project Environment, you can access the tools to Manage Selections from the Manage Ribbon:
However, this Ribbon Panel is not available on the default Manage Ribbon in the Family Environment(Build 20141119_0715(x64) Update Release 5). What to do? Well, we can just add these tools to the QAT (Quick Access Toolbar), so then at least we can use them while building families. There are a couple of ways we can do this, but here is how you can do it while staying in the Family Editor:
In the Family Environment, select more than one element
Right-click on the Save Selection button that appears in the contextual ribbon (the green one) and “Add to Quick Access Toolbar”
Save a Selection
Select more than one thing
Right-click on the Load Selection button that appears in the contextual ribbon (the green one) and “Add to Quick Access Toolbar”
You can also just add these items from the Project Environment, and as the QAT is shared with both environments, they will show when you edit a family.
However, while you can add the “Edit Selection” button to the QAT, it will not work in the Family Environment 🙁
Typically when editing Revit families, if you want to deal with arrays and stop them breaking when the count is 1, you set up some IF() formulas in Revit. However, a recent comment by David over on Revit Beginners describes another possible method: Thank you Luke. Another possible solution is to nest the element into an adaptive component family, then nest the adaptive onto a conceptual mass family surface and use the repeater tool which can have an array count of 1.
Sometimes, putting a bit of thought and planning into your family design well lead to far better results than simply ‘diving in there’. The following post shows a list of such requirements. Essentially, you write a ‘brief’ for your family, and then seek to meet the requirements of that brief.
This is kinda weird. I opened this 2012 family in 2013 – and now when I turn things on and off in the Family Editor, they completely disappear (they don’t just gray out as you would expect).
It is a scary little line based Casework family that I made a while back. It has heaps of instance parameter dimensions and is a generally a bit of a nightmare – but still, why is this strange issue occurring? Any ideas?
Isn’t it strange that Scope Box is a property of datums (like Reference Planes and Levels), AND its also a Property of Views (Floor Plans, Elevations, Sections etc) in the FAMILY environment, yet there is no tool to create a Scope Box available? (we are talking Revit 2012 here)
If you add a keyboard shortcut to Scope Box – it doesn’t work in the Family Editor…
If you add Scope Box to the Quick Launch toolbar – guess what? The Scope Box tool suddenly ‘appears’ in the Family Editor – but it is always greyed out. Remove it from Quick Launch, and it disappears just as suddenly… check it out:
How are we going to get around this one? Simple – use this method to transfer a Scope Box from the Project Environment to a family RFA. From there, we can copy the Scope Box from family to family as needed!
Here is another gift from What Revit Wants – a Generic Model family with a Scope Box in it that you can copy to other families: Download family
It’s pretty funny that you can’t even Create Similar once you have a Scope Box in the family!