# Curtainwall outline curve

**URL:** https://forum.dynamobim.com/t/curtainwall-outline-curve/20887
**Category:** Geometry
**Created:** [April 10, 2018, 7:40am UTC](https://forum.dynamobim.com/t/curtainwall-outline-curve/20887 "2018-04-10T07:40:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![3Pinter](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/3pinter/32/74327_2.png) [@3Pinter](https://forum.dynamobim.com/u/3Pinter)
#### Post date: [April 10, 2018, 7:40am UTC](https://forum.dynamobim.com/t/curtainwall-outline-curve/20887/1 "2018-04-10T07:40:11Z")

</div>

Guys,

I’m fiddling with curtain walls, the curves atm. which I want to dimension in the end.  
To my knowledge curtain walls are actually

- a collection of grids,
- the grids have mullions assigned

So if I want to obtain the geometric references of the curtain wall (the outline):

- get the bounding box of a curtain wall since the curtain wall itself has no geometry
- neglect the y-value
- min, max point will allow me to define the outline ???

Python/api gives me boundingbox too as only option?

---

<div class="post-metadata">

### Author: ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)
#### Post date: [April 10, 2018, 10:29am UTC](https://forum.dynamobim.com/t/curtainwall-outline-curve/20887/2 "2018-04-10T10:29:23Z")

</div>

Curtain walls have a location line and a height as well. Might be better to work with those and extrude the location line by the height.

---

<div class="post-metadata">

### Author: ![3Pinter](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/3pinter/32/74327_2.png) [@3Pinter](https://forum.dynamobim.com/u/3Pinter)
#### Post date: [April 10, 2018, 12:34pm UTC](https://forum.dynamobim.com/t/curtainwall-outline-curve/20887/3 "2018-04-10T12:34:49Z")

</div>

Don’t think that will work, I need to get a list of ReferenceArrays in order to place some dimensions in the end.

`NewLinearDimension Method (View, Line, ReferenceArray, DimensionType)`

Does anyone have a clue how to get a list of ReferenceArray’s??

---

<div class="post-metadata">

### Author: ![3Pinter](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/3pinter/32/74327_2.png) [@3Pinter](https://forum.dynamobim.com/u/3Pinter)
#### Post date: [April 11, 2018, 4:24pm UTC](https://forum.dynamobim.com/t/curtainwall-outline-curve/20887/4 "2018-04-11T16:24:36Z")

</div>

pfff how annoying. I can’t figure it out.

How do I get to the reference of a curtain wall?

```
import clr
clr.AddReference('ProtoGeometry')
from Autodesk.DesignScript.Geometry import *

clr.AddReference("RevitNodes")
import Revit

from Revit.Elements import *

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

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

doc = DocumentManager.Instance.CurrentDBDocument

#gc = UnwrapElement(IN[0]).GeometryCurve

c = UnwrapElement(IN[0])
for l in cw:	
	t = l.CurtainGrid.NumULines	
	u = l.get_Geometry
	#h = l.get_Geometry.Faces	
	#g = l.CurtainGrid.NumVLines
OUT = t,u

```

u outputs Ironpython.Runtime.Types.BuiltinFunction … which is good I guess? Is that how the references are retrieved?
