# Dimension to wall finished face

**URL:** <https://forum.dynamobim.com/t/dimension-to-wall-finished-face/23906>\
**Category:** Revit\
**Created:** [July 19, 2018, 7:28am UTC](https://forum.dynamobim.com/t/dimension-to-wall-finished-face/23906 "2018-07-19T07:28:28Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Ewan\_Opie](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/ewan_opie/32/77070_2.png) [@Ewan\_Opie](https://forum.dynamobim.com/u/Ewan_Opie)\
**Post date:** [July 23, 2018, 9:22pm UTC](https://forum.dynamobim.com/t/dimension-to-wall-finished-face/23906/3 "2018-07-23T21:22:01Z")

</div>

You can use the awesome code shared by @viktor_kuzev here:

> [@Automatic Dimension Walls](https://forum.dynamobim.com/t/automatic-dimension-walls/6970/5):
>
> To be able to dimension openings in walls you have to do some filtering. First you need to take the vertical faces of the wall which you can do with Surface.FilterByOrientation from Clockworks package: Then you need the faces that are perpendicular to the dimension line. You can filter them like that(this is the principle for the filtering inside Surface.FilterByOrientation too): Then you need the references of the actual wall faces. I did this with this little node I foun…

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/b/8/b8e9d938c0fdb4036e695526f61a06158aa3b6a7.jpg)

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

clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)
clr.ImportExtensions(Revit.Elements)

clr.AddReference('RevitServices')
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc=DocumentManager.Instance.CurrentDBDocument

line = UnwrapElement(IN[0]).GeometryCurve
elements= IN[1]
dim=0

elementsRef=ReferenceArray()
opt=Options()
opt.ComputeReferences=True
opt.IncludeNonVisibleObjects=True
opt.View=doc.ActiveView

for element in elements:
	elementsRef.Append(element)
	
TransactionManager.Instance.EnsureInTransaction(doc)

dim= doc.Create.NewDimension(doc.ActiveView, line, elementsRef).ToDSType(True)

TransactionManager.Instance.TransactionTaskDone()

OUT=dim

```

Looks like the difference between Revit.GeometryReference.ElementFace and Autodesk.Revit.DB.Reference (when converting a wall surface to a reference through the #clockwork node did the trick)

---

_[View the full topic](https://forum.dynamobim.com/t/dimension-to-wall-finished-face/23906)._
