<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Find all sheets with a particular keynote in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5486646#M74215</link>
    <description>&lt;P&gt;I have a large project (hundreds of sheets) and I've changed the text of a keynote for an addendum. &amp;nbsp;Now I must go through and bubble that keynote text in the legends on the sheets where it occurs. &amp;nbsp;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?&lt;/P&gt;</description>
    <pubDate>Wed, 28 Jan 2015 19:39:17 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-28T19:39:17Z</dc:date>
    <item>
      <title>Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5486646#M74215</link>
      <description>&lt;P&gt;I have a large project (hundreds of sheets) and I've changed the text of a keynote for an addendum. &amp;nbsp;Now I must go through and bubble that keynote text in the legends on the sheets where it occurs. &amp;nbsp;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?&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2015 19:39:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5486646#M74215</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-28T19:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5486672#M74216</link>
      <description>Oh . . . And I am on Revit 2014</description>
      <pubDate>Wed, 28 Jan 2015 19:47:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5486672#M74216</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-28T19:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5487132#M74217</link>
      <description>&lt;P&gt;This is definitely possible.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The way I would approach this is to:&lt;/P&gt;&lt;P&gt;1. Find all keynotes in the project&lt;/P&gt;&lt;PRE&gt;FilteredElementCollector tagColl =
                    new FilteredElementCollector(doc).OfClass(typeof(IndependentTag))
                        .OfCategory(BuiltInCategory.OST_KeynoteTags);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Search through those keynotes to find the ones matching the text you want&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;List&amp;lt;IndependentTag&amp;gt; keynotesMatchingText = (from IndependentTag i in tagColl
                    where (i.get_Parameter(BuiltInParameter.KEYNOTE_TEXT).AsString()
                           == "MyText")
                    select i).ToList();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;3. Get the views that own these keynotes&lt;/P&gt;&lt;PRE&gt;List&amp;lt;ElementId&amp;gt; viewIdsContainingKeynotes = (from keynote in keynotesMatchingText select keynote.OwnerViewId).ToList();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that this will only get you the views containing the keynotes, and not the sheets that contain the view. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 01:00:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5487132#M74217</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-29T01:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5488066#M74218</link>
      <description>&lt;P&gt;Thank you for the very clear examples . . . very usefull.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Jan 2015 16:36:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/5488066#M74218</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-29T16:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/9717599#M74219</link>
      <description>&lt;P&gt;I found another way with the add-in Revit LookUp.. since I don't know how to write a macro.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Snoop current selection &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Aug 2020 15:39:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/9717599#M74219</guid>
      <dc:creator>priscillia_champagne</dc:creator>
      <dc:date>2020-08-28T15:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find all sheets with a particular keynote</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/11557245#M74220</link>
      <description>&lt;P&gt;Revolution Design's Keynote Manager allows you to find all references of a particular keynote.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 18:15:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/find-all-sheets-with-a-particular-keynote/m-p/11557245#M74220</guid>
      <dc:creator>CADiva</dc:creator>
      <dc:date>2022-11-16T18:15:57Z</dc:date>
    </item>
  </channel>
</rss>

