# Use dynamo to find all "Referring Views" - trying to reference all annotation symbols that generates a particular view

**URL:** <https://forum.dynamobim.com/t/use-dynamo-to-find-all-referring-views-trying-to-reference-all-annotation-symbols-that-generates-a-particular-view/18711>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [February 1, 2018, 6:05pm UTC](https://forum.dynamobim.com/t/use-dynamo-to-find-all-referring-views-trying-to-reference-all-annotation-symbols-that-generates-a-particular-view/18711 "2018-02-01T18:05:02Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![awilliams](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/awilliams/32/114496_2.png) [@awilliams](https://forum.dynamobim.com/u/awilliams)\
**Post date:** [February 3, 2018, 12:11am UTC](https://forum.dynamobim.com/t/use-dynamo-to-find-all-referring-views-trying-to-reference-all-annotation-symbols-that-generates-a-particular-view/18711/2 "2018-02-03T00:11:52Z")

</div>

I couldn’t find anything on this and I was curious enough to try it in Python… seems it might be useful enough for me at some point, too 🙂 I’m using archi-lab and Rhythm to collect the views that are on sheets given that the reference detail / sheet aspect of your inquiry pertains to those views

 ![find%20referring%20views](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/7/b74ce647c0be8b3c555fc04553b21bad606ba116.png)  
 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/d/ad98d7c3a5640801c3d76b42e9115d4575edd45f.png)

Python script:

```
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument

views = UnwrapElement(IN[0])
name = IN[1]

def getRefs(sheetviews, vName):
	refViews = []
	for view in sheetviews:
		viewColl = FilteredElementCollector(doc, view.Id).OfCategory(BuiltInCategory.OST_Viewers).ToElements()
		for viewer in viewColl:
			if viewer.Name == vName:
				refViews.append(view)
	return refViews
	
OUT = getRefs(views, name)

```

Looks to be working 🙂 hope this helps

---

_[View the full topic](https://forum.dynamobim.com/t/use-dynamo-to-find-all-referring-views-trying-to-reference-all-annotation-symbols-that-generates-a-particular-view/18711)._
