Find all sheets with a particular keynote

Find all sheets with a particular keynote

Anonymous
Not applicable
3,123 Views
5 Replies
Message 1 of 6

Find all sheets with a particular keynote

Anonymous
Not applicable

I have a large project (hundreds of sheets) and I've changed the text of a keynote for an addendum.  Now I must go through and bubble that keynote text in the legends on the sheets where it occurs.  Is there a way to find all of these sheets (either with macro or through the UI itself) so that I can be sure that I have found them all?

0 Likes
Accepted solutions (1)
3,124 Views
5 Replies
Replies (5)
Message 2 of 6

Anonymous
Not applicable
Oh . . . And I am on Revit 2014
0 Likes
Message 3 of 6

Anonymous
Not applicable
Accepted solution

This is definitely possible.

 

The way I would approach this is to:

1. Find all keynotes in the project

FilteredElementCollector tagColl =
                    new FilteredElementCollector(doc).OfClass(typeof(IndependentTag))
                        .OfCategory(BuiltInCategory.OST_KeynoteTags);

 

2. Search through those keynotes to find the ones matching the text you want

 

List<IndependentTag> keynotesMatchingText = (from IndependentTag i in tagColl
                    where (i.get_Parameter(BuiltInParameter.KEYNOTE_TEXT).AsString()
                           == "MyText")
                    select i).ToList();

 

3. Get the views that own these keynotes

List<ElementId> viewIdsContainingKeynotes = (from keynote in keynotesMatchingText select keynote.OwnerViewId).ToList();

 

Note that this will only get you the views containing the keynotes, and not the sheets that contain the view.  

 

With the keynotes matching your text and the views that contain them known, you should be able to come up with some way to verify that you haven't missed any.

0 Likes
Message 4 of 6

Anonymous
Not applicable

Thank you for the very clear examples . . . very usefull.

0 Likes
Message 5 of 6

priscillia_champagne
Contributor
Contributor

I found another way with the add-in Revit LookUp.. since I don't know how to write a macro. 

Snoop current selection 🙂 

0 Likes
Message 6 of 6

CADiva
Advocate
Advocate

Revolution Design's Keynote Manager allows you to find all references of a particular keynote.

0 Likes