<?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 Re: Find view(s) that a selected object is in in Revit Structure Forum</title>
    <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803550#M12582</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10417289"&gt;@davidjimm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the "Find Referring Views" option. However, 3D elements exist in all views even if you do not see them, unless such elements are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Cropped out of the view&lt;/LI&gt;&lt;LI&gt;Outside view Range / Far Clipping&lt;/LI&gt;&lt;LI&gt;On a closed workset or hidden by other means such as of VG or Filters&lt;/LI&gt;&lt;LI&gt;On a filtered out Phase or non-primary Design option&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, if the objects/elements you mentioned are 3D elements, then that Dynamo Graph would more or less useless unless one of the above applies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 07 Dec 2021 18:29:41 GMT</pubDate>
    <dc:creator>RDAOU</dc:creator>
    <dc:date>2021-12-07T18:29:41Z</dc:date>
    <item>
      <title>Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10788631#M12579</link>
      <description>&lt;P&gt;Is there any way I can find out what view or views an object is in from the 3D view. We are in a large project, and I would like to be able to select an object and find the sheet it is on. I can get the sheet from the view an object is on hopefully.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:17:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10788631#M12579</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-11-29T17:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10788697#M12580</link>
      <description>&lt;P&gt;You can using the API or Dynamo.&lt;/P&gt;&lt;P&gt;The object may show up on many different views. And may be in a view but not visible because it is hidden by another object. From the views, you can get the sheets.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Nov 2021 17:48:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10788697#M12580</guid>
      <dc:creator>aaronrumple</dc:creator>
      <dc:date>2021-11-29T17:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10802138#M12581</link>
      <description>&lt;P&gt;Thanks for the reply. I was hoping to get a Dynamo script to find the view by selecting the object. I apreciate the help.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Dec 2021 16:52:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10802138#M12581</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-05T16:52:48Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803550#M12582</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10417289"&gt;@davidjimm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use the "Find Referring Views" option. However, 3D elements exist in all views even if you do not see them, unless such elements are&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Cropped out of the view&lt;/LI&gt;&lt;LI&gt;Outside view Range / Far Clipping&lt;/LI&gt;&lt;LI&gt;On a closed workset or hidden by other means such as of VG or Filters&lt;/LI&gt;&lt;LI&gt;On a filtered out Phase or non-primary Design option&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hence, if the objects/elements you mentioned are 3D elements, then that Dynamo Graph would more or less useless unless one of the above applies&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:29:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803550#M12582</guid>
      <dc:creator>RDAOU</dc:creator>
      <dc:date>2021-12-07T18:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803853#M12583</link>
      <description>&lt;P&gt;Thanks for all the help. I was able to write(modify) a Dynamo/Python script that allows you to select an object and find the views and sheets that the object appears in...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="000477.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/997727i141C78CD71B87F7F/image-size/large?v=v2&amp;amp;px=999" role="button" title="000477.jpg" alt="000477.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here's the dynamo script. Very useful to us!&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import clr
clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript.Geometry import *

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument

elementz = UnwrapElement(IN[0])

viewtemplates = list()
views = list()
viewcollector = FilteredElementCollector(doc).OfClass(View)

sheetcollector = FilteredElementCollector(doc).OfClass(ViewSheet)

for view in viewcollector:
    if view.IsTemplate == True:
        viewtemplates.append(view)
    else:
        views.append(view)

viewmatches = list()

viewmatchez  = list()


for v in views:
        viewelemidz=[]
        viewelems = list()
        viewelems = FilteredElementCollector(doc,v.Id)
        for viewelem in viewelems:
            viewelemidz.append(viewelem.Id)
        for i in range(0,1):
			elem = elementz
			elemid = elem.Id
			viewmatchez = viewmatches
			if elemid in viewelemidz:
				viewmatchez.append(v)


sheetz = list()
for sheet in sheetcollector:
    sheetz.append(sheet)

elsheetmatches = list()
for i in range(0,1):
    elviewmatches = viewmatches
    elsheets = list()
    for viewmatch in elviewmatches:
        sheetnum = viewmatch.get_Parameter(BuiltInParameter.VIEWER_SHEET_NUMBER).AsString()
        if sheetnum != '-':
            for sheetel in sheetz:
                if sheetel.get_Parameter(BuiltInParameter.SHEET_NUMBER).AsString() == sheetnum:
                    elsheets.append(sheetel)
    elsheetmatches = elsheets

OUT = viewmatches, elsheetmatches&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Dec 2021 15:12:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803853#M12583</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-06T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803913#M12584</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;FONT size="2"&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10417289"&gt;@davidjimm&lt;/a&gt;&amp;nbsp;wrote:&lt;/FONT&gt;&lt;BR /&gt;&lt;P&gt;&lt;FONT size="2"&gt;Thanks for all the help. I was able to write(modify) a Dynamo/Python script that allows you to select an object and find the views and sheets that the object appears in...&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Here's the dynamo script. Very useful to us!&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10417289"&gt;@davidjimm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How is knowing that the element is in 36 views useful exactly?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RDAOU_0-1638805114553.png" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/997745i80D43F0CB11359D5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RDAOU_0-1638805114553.png" alt="RDAOU_0-1638805114553.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: when you copy a code, have the decency to provide a link to where it was copied from&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forum.dynamobim.com/t/find-views-and-sheets-that-show-a-specific-element/1921/5" target="_blank" rel="noopener"&gt;https://forum.dynamobim.com/t/find-views-and-sheets-that-show-a-specific-element/1921/5&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:23:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10803913#M12584</guid>
      <dc:creator>RDAOU</dc:creator>
      <dc:date>2021-12-07T18:23:04Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10806897#M12585</link>
      <description>&lt;P&gt;Yeah, my first post here. Thanks for the heads up about posting where I copied it from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To answer your question, in the project I showed an example from we have well over a thousand views, and somewhere in the range of 100 sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be able to narrow this down 32 views and 4 sheets is extremely helpful!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The key is looking for what sheets this object is on for us. Finding the views is usually just a means to find the sheets.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I open those 4 sheets, and the go to the 3D view and highlight the object. Then pan through the see where it is.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I do have to open and page through 32 views it's a lot easier than opening 1119 views to look for it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="aa.jpg" style="width: 325px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/998384i38F3645E344A6A4E/image-size/large?v=v2&amp;amp;px=999" role="button" title="aa.jpg" alt="aa.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bb.jpg" style="width: 303px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/998383i03E70BFAEECED60E/image-size/large?v=v2&amp;amp;px=999" role="button" title="bb.jpg" alt="bb.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks again for trying to help&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;. And for setting me straight on posting the link I got the original code from.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 17:47:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10806897#M12585</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-07T17:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10807010#M12586</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/10417289"&gt;@davidjimm&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You didn't need to type such a length reply I still do not see the usefulness of knowing the object appears in 36 views...apart from that, I wouldn't be looking for Beams Reinforcement details on a Furniture layout.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 19:09:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10807010#M12586</guid>
      <dc:creator>RDAOU</dc:creator>
      <dc:date>2021-12-07T19:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10807100#M12587</link>
      <description>&lt;P&gt;I need the SHEETS that the object is on, per the original post. &lt;FONT face="arial,helvetica,sans-serif"&gt;&lt;EM&gt;"We are in a large project, and I would like to be able to select an object and find the &lt;STRONG&gt;sheet&lt;/STRONG&gt; it is on."&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;If I right click on an object and go to find referring views...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CC.jpg" style="width: 226px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/998418iE937D01922B14FF5/image-size/large?v=v2&amp;amp;px=999" role="button" title="CC.jpg" alt="CC.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="DD.jpg" style="width: 236px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/998419iA4E22504A14B2FE7/image-dimensions/236x756?v=v2" width="236" height="756" role="button" title="DD.jpg" alt="DD.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;These are the views I get that refer to this object. Of those views only a few of them will actually be put on sheets. To find those sheets I would have to open up all those views.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run the dynamo/script, it gives me the 3 sheet names that have this object on it (SC-1214,SC-1123,C-0106)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think it's helpful. If you don't I understand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ee.jpg" style="width: 723px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/998438i6B3E649BF87A0D98/image-size/large?v=v2&amp;amp;px=999" role="button" title="ee.jpg" alt="ee.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 18:54:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10807100#M12587</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-07T18:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10813877#M12588</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Can you post the dynamo script? I tried to re-create it from your views and the copied code but I couldn't get it to work. I re-created it in 2022, and I got an error message about Dynamo is moving towards Python Engine 3 instead of 2.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 08:18:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10813877#M12588</guid>
      <dc:creator>robert.jungergard</dc:creator>
      <dc:date>2021-12-10T08:18:12Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10814469#M12589</link>
      <description>&lt;P&gt;I'll try to update my Dynamo code and repost it. The models we're working in are Revit 2019, but I do have Revit 2021 on my computer. I'll get the program to run on that and repost it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 13:22:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10814469#M12589</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-10T13:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10814539#M12590</link>
      <description>&lt;P&gt;Ok, here's the Dynamo file from Revit 2021.&lt;/P&gt;&lt;P&gt;Just for some clarification, I left the first "select" node blank. If you leave that node blank, when the users run it in the player it will ask for an object. If you fill it in, it will use that object and not ask.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe 2022 has a different Python version than this, hopefully you can still get it to work. I'd be happy to do anything else you can think of.&lt;/P&gt;&lt;P&gt;I'm going to post the picture, code, and try to attach the file also. A little redundant, but maybe it will help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="findfile 2021.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/999896i74286B95C41DD3B8/image-size/large?v=v2&amp;amp;px=999" role="button" title="findfile 2021.jpg" alt="findfile 2021.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;import clr
clr.AddReference("ProtoGeometry")
from Autodesk.DesignScript.Geometry import *

# Import DocumentManager and TransactionManager
clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

# Import RevitAPI
clr.AddReference("RevitAPI")
import Autodesk
from Autodesk.Revit.DB import *

doc = DocumentManager.Instance.CurrentDBDocument

elementz = UnwrapElement(IN[0])

viewtemplates = list()
views = list()
viewcollector = FilteredElementCollector(doc).OfClass(View)

sheetcollector = FilteredElementCollector(doc).OfClass(ViewSheet)

for view in viewcollector:
    if view.IsTemplate == True:
        viewtemplates.append(view)
    else:
        views.append(view)

viewmatches = list()

viewmatchez  = list()


for v in views:
        viewelemidz=[]
        viewelems = list()
        viewelems = FilteredElementCollector(doc,v.Id)
        for viewelem in viewelems:
            viewelemidz.append(viewelem.Id)
        for i in range(0,1):
			elem = elementz
			elemid = elem.Id
			viewmatchez = viewmatches
			if elemid in viewelemidz:
				viewmatchez.append(v)


sheetz = list()
for sheet in sheetcollector:
    sheetz.append(sheet)

elsheetmatches = list()
for i in range(0,1):
    elviewmatches = viewmatches
    elsheets = list()
    for viewmatch in elviewmatches:
        sheetnum = viewmatch.get_Parameter(BuiltInParameter.VIEWER_SHEET_NUMBER).AsString()
        if sheetnum != '-':
            for sheetel in sheetz:
                if sheetel.get_Parameter(BuiltInParameter.SHEET_NUMBER).AsString() == sheetnum:
                    elsheets.append(sheetel)
    elsheetmatches = elsheets

OUT = viewmatches, elsheetmatches&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 14:22:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/10814539#M12590</guid>
      <dc:creator>davidjimm</dc:creator>
      <dc:date>2021-12-10T14:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: Find view(s) that a selected object is in</title>
      <link>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/13093973#M12591</link>
      <description>&lt;P&gt;This is a great tool to have, especially if there is a change and you want to make sure all the sheets impacted with the changed elements are identified and clouded, etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seems like it is taking much longer if you have some sheets that are not part of the set, as this goes thru all the possible sheets in the project and takes a lot of time. It would be great to include another parameter to only go thru sheets that are part of selected "sheet index" schedule for example. Would you be able to include that feature as well?&lt;/P&gt;</description>
      <pubDate>Fri, 18 Oct 2024 18:28:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-structure-forum/find-view-s-that-a-selected-object-is-in/m-p/13093973#M12591</guid>
      <dc:creator>payam.rad</dc:creator>
      <dc:date>2024-10-18T18:28:25Z</dc:date>
    </item>
  </channel>
</rss>

