# Can Curtain walls be dimensioned with current dynamo nodes?

**URL:** <https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228>\
**Category:** Revit\
**Created:** [October 15, 2018, 9:12pm UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228 "2018-10-15T21:12:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 15, 2018, 9:12pm UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/1 "2018-10-15T21:12:31Z")

</div>

Hi, I’ve been reading and researching a for a few hours but struggling to get a strong understanding of dimensioning curtain walls. The **dimension.byelements** node dimensions lines so I thought it would be able to dimension curtain grid lines? Can curtain walls be dimensioned by **dimension.byelements** node? Or do you need to understand python coding to achieve this currently?

![image](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/3X/2/d/2d658c40265345f44083e08a72c0e0bf87bef244.png)

---

<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:** [October 15, 2018, 10:30pm UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/2 "2018-10-15T22:30:33Z")

</div>

Looking likely, have a look through a bit of Python that can be found here:

> [@Dimension to wall finished face](https://forum.dynamobim.com/t/dimension-to-wall-finished-face/23906/3):
>
> You can use the awesome code shared by @viktor_kuzev here: 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 = Unwra…

and the [designtech.io](http://designtech.io) package from here [https://designtech.io/tools/#dynamo](https://designtech.io/tools/#dynamo)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/f/7f52263b4a329cfd3181d918c0bc6b17889551d3.png)

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 15, 2018, 10:48pm UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/3 "2018-10-15T22:48:15Z")

</div>

Awesome thanks. Will dive into this after gym. I was on [Lydna.com](http://Lydna.com) just before trying to start the beginnings of python coding. Lynda is free when you join up to the Auckland Library.

[https://www.lynda.com/Dynamo-Studio-tutorials/Navigating-Revit-API/647661/687154-4.html?srchtrk=index%3A4 linktypeid%3A2 q%3Arevit+visual+studio page%3A1 s%3Arelevance sa%3Atrue producttypeid%3A2](https://www.lynda.com/Dynamo-Studio-tutorials/Navigating-Revit-API/647661/687154-4.html?srchtrk=index%3a4%0alinktypeid%3a2%0aq%3arevit+visual+studio%0apage%3a1%0as%3arelevance%0asa%3atrue%0aproducttypeid%3a2)

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 17, 2018, 12:58am UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/6 "2018-10-17T00:58:22Z")

</div>

Sorry man… keep posting and figuring out stuff and reposting… finally figured out how to get your script to work for a section view overall dimension on a curtain wall, but need it to pick up curtain grids aswell and take lists.

```
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]
view = UnwrapElement(IN[2])
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(view, line, elementsRef).ToDSType(True)

TransactionManager.Instance.TransactionTaskDone()

OUT=dim

```

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/3/63385361da3ac60a719a51c739ab2c033061e5f2.png)

---

<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:** [October 17, 2018, 1:55am UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/7 "2018-10-17T01:55:01Z")

</div>

For multiple views, references and dimension setout lines, all the python inputs needed to be able to handle lists.  
😀

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/4/e4d9bc2638a0f5e79ff647bfb55c93bf61703081.png)

```
import clr

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager
doc = DocumentManager.Instance.CurrentDBDocument
app = DocumentManager.Instance.CurrentUIApplication.Application

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

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

def tolist(obj1):
    if hasattr(obj1," __iter__"): return obj1
    else: return [obj1]

views = tolist(UnwrapElement(IN[2]))
dimSetoutLines = tolist(UnwrapElement(IN[0]))
refs = tolist(UnwrapElement(IN[1]))

refArrays = []

outList = []

for refList in refs:
    rArr = ReferenceArray()
    for l in refList:
        rArr.Append(l)
    refArrays.append(rArr)

TransactionManager.Instance.EnsureInTransaction(doc)
for l,r,v in zip(dimSetoutLines,refArrays,views):
    try:
        outList.append(doc.Create.NewDimension(v,l.GeometryCurve,r))
    except Exception,e:
        outList.append(e.message)
    
TransactionManager.Instance.TransactionTaskDone()

OUT = outList

```

To get the references of the CurtainGridLines use the node from the [designtech.io](http://designtech.io) package.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/0/9049ac802b6a138a72598df4fe3db50f871c815e.png)

---

<div class="post-metadata">

**Author:** ![vanman](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vanman/32/20881_2.png) [@vanman](https://forum.dynamobim.com/u/vanman)\
**Post date:** [October 17, 2018, 2:27am UTC](https://forum.dynamobim.com/t/can-curtain-walls-be-dimensioned-with-current-dynamo-nodes/27228/8 "2018-10-17T02:27:18Z")

</div>

This is amazing! thank you!
