<?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 Filter for hidden Revision clouds on a sheet in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385615#M25433</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on an addin that hides/unhides the revision clouds of a certain revision on the sheets.&lt;/P&gt;&lt;P&gt;My filter to get the clouds looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clouds = new FilteredElementCollector(vs.Document, vs.Id).OfCategory(BuiltInCategory.OST_RevisionClouds).OfClass(typeof(RevisionCloud));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this filter only finds the clouds which are not hidden.&lt;/P&gt;&lt;P&gt;I don't know how to modify this filter that the hidden clouds are also found?&lt;/P&gt;&lt;P&gt;I hope somebody can help me.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 12 Jun 2021 21:37:13 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2021-06-12T21:37:13Z</dc:date>
    <item>
      <title>Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385615#M25433</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on an addin that hides/unhides the revision clouds of a certain revision on the sheets.&lt;/P&gt;&lt;P&gt;My filter to get the clouds looks like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;clouds = new FilteredElementCollector(vs.Document, vs.Id).OfCategory(BuiltInCategory.OST_RevisionClouds).OfClass(typeof(RevisionCloud));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this filter only finds the clouds which are not hidden.&lt;/P&gt;&lt;P&gt;I don't know how to modify this filter that the hidden clouds are also found?&lt;/P&gt;&lt;P&gt;I hope somebody can help me.&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 21:37:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385615#M25433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-12T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385638#M25434</link>
      <description>&lt;P&gt;Revision clouds are dependent to the view that they are drawn in. So you can use the Element.GetDependentElements() method to retrieve all clouds on a sheet or in a view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In python:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;# This filter targets only RevisionClouds
filter = ElementCategoryFilter(BuiltInCategory.OST_RevisionClouds)

# GetDependentElements retrives all revision clouds 
# (in this case, in the active view)
elementIds = doc.ActiveView.GetDependentElements(filter)


tx = Transaction(doc, "Unhide hidden clouds")
tx.Start()

doc.ActiveView.UnhideElements(elementIds)

tx.Commit()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 21:55:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385638#M25434</guid>
      <dc:creator>bhprest</dc:creator>
      <dc:date>2021-06-12T21:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385724#M25435</link>
      <description>&lt;P&gt;Thank you for your answer.&lt;/P&gt;&lt;P&gt;"GetDependentELements" seems not to work with views/sheets.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 23:06:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385724#M25435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-12T23:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385729#M25436</link>
      <description>&lt;P&gt;It definitely works for sheets and views. I tested the code above before replying. If you want, you can post your code, and I can take a look.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 23:11:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385729#M25436</guid>
      <dc:creator>bhprest</dc:creator>
      <dc:date>2021-06-12T23:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385735#M25437</link>
      <description>&lt;P&gt;Sorry. That was my fault. I forgot to mention that I create this addin for a project done in Revit 2018. I just read in the Internet that the method "GetDependentElements" was new to Revit 2019.&lt;/P&gt;&lt;P&gt;Maybe you have an idea how to do this in an other way?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 23:17:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385735#M25437</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-12T23:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385760#M25438</link>
      <description>&lt;P&gt;Next thing that I would try is collecting all clouds in the entire document, and filtering them using the OwnerViewId property to get just the clouds on the view you’re interested in.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This should return clouds regardless of visibility.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jun 2021 23:45:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10385760#M25438</guid>
      <dc:creator>bhprest</dc:creator>
      <dc:date>2021-06-12T23:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10386892#M25439</link>
      <description>&lt;P&gt;What is the best way to filter all the clouds in the document inclusive the hidden ones?&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 16:29:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10386892#M25439</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-13T16:29:21Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10386932#M25440</link>
      <description>&lt;P&gt;Just use a FilteredElementCollector, but don't specify a view Id.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So your code from your original post becomes:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clouds = new FilteredElementCollector(vs.Document).OfCategory(BuiltInCategory.OST_RevisionClouds).OfClass(typeof(RevisionCloud))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which can actually be improved upon:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;clouds = new FilteredElementCollector(vs.Document).OfCategory(BuiltInCategory.OST_RevisionClouds).WhereElementIsNotElementType()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it appears to me that your OfClass and OfCategory calls are more or less overlapping, and shouldn't be necessary. The function WhereElementIsNotElementType() also helps filter out elements that are representing a type of element rather than a placed element.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 16:51:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10386932#M25440</guid>
      <dc:creator>bhprest</dc:creator>
      <dc:date>2021-06-13T16:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Filter for hidden Revision clouds on a sheet</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10387311#M25441</link>
      <description>&lt;P&gt;It works.&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Jun 2021 22:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/filter-for-hidden-revision-clouds-on-a-sheet/m-p/10387311#M25441</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-06-13T22:28:49Z</dc:date>
    </item>
  </channel>
</rss>

