Creating Revit Parameters to use with Groups and PropertyWizard

If you are creating parameters in projects that have Groups, and you are using PropertyWizard, you should be aware of this setting in the Parameter Properties dialog:

Revit Parameter Properties dialog, highlighting the group settings

What does the setting do? Well, it only has an effect if you’re using groups, and it’s only active for instance parameters. For example, imagine you add a new instance parameter to the Doors category. Each door in your project now has the new parameter, and since it’s an instance parameter you can set the value differently on every door.

Continue reading “Creating Revit Parameters to use with Groups and PropertyWizard”

How to access Coordinates with PropertyWizard

Coordinates are vital, but Revit does not give you many ways to access them. To show them on sheets, you have the Spot Coordinates tool, but if you want to schedule them you are out of luck.

Fortunately, PropertyWizard makes it easy to access coordinates. This is a quick walkthrough.

Elements in Revit have a Location property in the Revit API. For a normal family that’s placed using a single point, this Location property will contain a LocationPoint object (shown here in Revit Lookup):

Continue reading “How to access Coordinates with PropertyWizard”

How PropertyWizard generates text values

The previous post explains how to use the ‘+’ operator to join text values together in PropertyWizard. But it doesn’t explain how PropertyWizard generates text values from the Revit properties that you use in your formulas.

For example, in this formula what determines how the Length value is formatted?

"This wall is " + Length + " long."

The answer depends on whether the Revit property is a parameter or an API property.

Continue reading “How PropertyWizard generates text values”

Using properties in formulas

The second tutorial in PropertyWizard Help introduces the idea of using element properties in your formulas:

PropertyWizard Formula window showing a formula for the category 'Walls', Target Property is 'Comments' and the Formula text is 'Length'
Formula using Length property

You can refer to:

Properties of the target element – Use the name shown in the Revit Properties window, as in this example. If the name includes spaces or special characters, then you need to wrap it in square brackets like this: [Sheet Name].

Nested properties – Use ‘dot notation’ like Dynamo. For example, the name of a Door’s Level would be Level.Name. There is no limit to the depth of nesting, but all the properties except the last must be Elements or ElementIDs.

API properties of the target element or nested elements – These are the ‘behind the scenes’ properties exposed in the Revit API, which you can find using the Revit Lookup add-in or the Revit API Help. Use the property name, e.g. Location for an element’s Location property.

Project Information properties – Use ProjectInfo.parametername.

Global Parameters – Use GlobalParameter.parametername.

Your first PropertyWizard formula: ‘Hello Wall’

This is a quick exploration based on the first ‘Getting Started’ tutorial from the PropertyWizard Help.

The tutorials are meant to give you a good introduction to PropertyWizard and what it can do for you.

The first tutorial’s formula is straightforward: It collects all the walls in the project and sets their Comments parameter to say ‘Hello Wall’:

PropertyWizard Formula window showing a formula for the category 'Walls', Target Property is 'Comments' and the Formula text is "Hello Wall"
‘Hello Wall’ formula

This is a very simple formula, and you’d never use it in a real Revit project. But we can use it to explore what PropertyWizard brings to Revit.

So, just for comparison, if you needed to set the walls’ Comments to ‘Hello World’ manually, how would you do it?

Continue reading “Your first PropertyWizard formula: ‘Hello Wall’”