These parameter types can be used in formulas:
- <Family Type..>
The following parameter types cannot be used in formulas:
There is another kind of schedule parameter, which is not listed above (because it is a system parameter that you cannot choose from a list of types):
"Count", which is just a number (always = 1 for each item).
However, if you try to use this in a schedule formula, Revit gets very uppity and says you cannot.
This is unprecedented in Revit - a message that actually explains why it can't do what you want!
- In case its not obvious what this means, it is referring to when you uncheck "Itemise every instance" under the Sorting/Grouping tab.
Count Dracula FormulasIn your schedule, you can create your own "Count" parameter:
a Calculated Value with a formula = 1
You could call it "Dracula", but that might confuse everyone later, so its better to use something more prosaic like "MyCount"
|MyCount formatted to No Calculation|
Don't forget to format your Count Dracula parameter to 'Calculate Totals' otherwise it will list only 1 even for multiple elements per row (as above).
|MyCount formatted to Calculate Totals|
Once you have 'MyCount' working, you can include it in a formula:
- You may have a numeric parameter - say 'Num Shelves', which represents the number of shelves in a unit.
- This can be multiplied by your Count parameter in a new 'ShelfCount' calculated value
Revit is quite happy to include "Dracula" or "MyCount" in the formula even though it is doing the same job as the system parameter 'Count'.
The formula could include an if statement:
Or you could put a formula directly into your 'MyCount' parameter
NB . The last two formulas were somewhat superfluous, but just shown to demonstrate that you can create formulas with your own Count parameter. For a more realistic example, refer to my previous post on Hiding Zeros in Schedule Formulas
This workaround removes one of Revit's many limitations - the programmers obviously put that one in deliberately to prevent "wrong workflows", but in reality they didn't anticipate all our requirements with schedule formulas. [Yes, my spellchecker doesn't like "formulas", but then I never liked learning Latin, so I'm not changing it!]
For more information about Revit Schedules, refer to this index of Schedule blog posts