# How to Retrieve all Elevations from a RVT document Filepath?

**URL:** <https://forum.dynamobim.com/t/how-to-retrieve-all-elevations-from-a-rvt-document-filepath/27799>\
**Category:** Uncategorized\
**Created:** [October 29, 2018, 4:50pm UTC](https://forum.dynamobim.com/t/how-to-retrieve-all-elevations-from-a-rvt-document-filepath/27799 "2018-10-29T16:50:52Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Alban\_de\_Chasteigner](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/alban_de_chasteigner/32/39650_2.png) [@Alban\_de\_Chasteigner](https://forum.dynamobim.com/u/Alban_de_Chasteigner)\
**Post date:** [October 29, 2018, 5:11pm UTC](https://forum.dynamobim.com/t/how-to-retrieve-all-elevations-from-a-rvt-document-filepath/27799/2 "2018-10-29T17:11:03Z")

</div>

Hi @daniel.tran,

You already asked for a very similar task a few days ago. (with viewTemplates)  
Next time, try for yourself.

You can make a filter to collect only the elevations or use python :

```
#Copyright(c) 2015, Konrad Sobon
# @arch_laboratory, http://archi-lab.net
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 *
from System.Collections.Generic import *
# Import ToDSType(bool) extension method
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.Elements)

def tolist(x):
    if hasattr(x,' __iter__'): return x
    else : return [x]

doc = tolist(IN[0])

#collect all views in the model
for d in doc:
	collector = FilteredElementCollector(d)
views = collector.OfClass(View).ToElements()

#sort views into separate lists based on view type
elevations = []

for i in views:
	if not i.IsTemplate:
		if i.ViewType == ViewType.Elevation:
			elevations.append(i.ToDSType(True))
		else:
			continue
#Assign your output to the OUT variable
OUT = elevations

```

 ![Report%20Elevations](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/f/3fb55e78b1900363aab03058ebe0cbb87adc1d9b.png)

---

_[View the full topic](https://forum.dynamobim.com/t/how-to-retrieve-all-elevations-from-a-rvt-document-filepath/27799)._
