Using View Expressions

Instead of maintaining a Revit SheetSet that contains an up-to-date list of all views or sheets to be processed with a particular task, you can simply leverage the BIM data that already exists on each View/Sheet to decide whether to include it or not.

 

View Expressions enable you to write expressions that are evaluated at runtime in the model.

Note: You do not need to run a RevitDBExport task, etc.

 

The View Expression can be entered in almost all tasks that are looking for a particular sheet set name. The presence of an "=" alerts Clarity that it is a dynamic expression.

Simple Expression

The simplest expression would be similar to:

Discpline=Arch

If you have a sheet parameter called Discipline, it looks for all views/sheets with this parameter name, and collects those that match.

Multiple Expressions

Sheets with multiple criteria can be specified with a comma:

Discipline=Arch,Include In Sheet List=Yes

This only matches views/sheets where BOTH statements are true.

Simple Wildcards

If the value requires simple wildcards, you can use * in the value.

Discipline=A*

This searches for anything that starts with A.

Complex Wildcards

If the value requires complex wildcards, you can use Regular Expressions (also known as Wildcards on Steroids). These wildcards are incredibly powerful at being able to match patterns. You can have endless possibilities of expressions using the ~ (rather than =) operator.

Sheet Number=~(A|B|C).+

(sheet number starts with A, B or C).

Sheet Number=~[a-z][0-9][0-9][0-9]

(sheet number is a letter followed by three numbers).

Sheet Number=~[^G]+

(sheet number does not have a G in it).

For information on Regular Expressions, see http://www.regular-expressions.info/.

Important Notes

Most tasks are not limited to only SHEETS, rather they are also able to print any View. When using the View Expressions, ensure that you are not using parameters that apply to Views as well as Sheets, as both kinds will be returned (depending on what you want the result to be).

 


IMAGINiT Clarity
Copyright © 2011-2020, Rand Worldwide, Inc. All Rights Reserved