# Get mass glazing geometry into Dynamo

**URL:** <https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455>\
**Category:** Geometry\
**Tags:** revit, dynamo\
**Created:** [February 8, 2017, 10:44am UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455 "2017-02-08T10:44:46Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Atkins14](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Atkins14](https://forum.dynamobim.com/u/Atkins14)\
**Post date:** [February 8, 2017, 10:44am UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/1 "2017-02-08T10:44:46Z")

</div>

Hi,  
i am currently looking to obtain the geometry (faces/edges) of a conceptual mass, form/shading/glazing/floors, into Dynamo. i haven’t found a way to get the geometry of the glazing. I can get the element ID etc, but not the actual edges/faces.

i can manually select the glazing edges but this is not realistic when working with large complex building forms.

I have tried topology nodes / element.geometry / faces etc.,

I require this as i am looking to use the coordinates in other packages.

Thank you in advance,

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [February 8, 2017, 10:48am UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/2 "2017-02-08T10:48:16Z")

</div>

Hi @Atkins14 ,

could you share a dummy file with your conceptual mass or drop some screenshots?

---

<div class="post-metadata">

**Author:** ![viktor\_kuzev](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/viktor_kuzev/32/48254_2.png) [@viktor\_kuzev](https://forum.dynamobim.com/u/viktor_kuzev)\
**Post date:** [February 8, 2017, 10:48am UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/3 "2017-02-08T10:48:49Z")

</div>

Hi!  
Could you be more specific? Do you want to get geometry of a Curtain System applied to a mass face or a Divided Surface with panels? Or maybe the mass face itself?  
Could you share a dummy file?

---

<div class="post-metadata">

**Author:** ![Atkins14](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Atkins14](https://forum.dynamobim.com/u/Atkins14)\
**Post date:** [February 8, 2017, 12:39pm UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/4 "2017-02-08T12:39:59Z")

</div>

Hi,  
i am setting the glazing % of the mass via the energy settings (i.e. 40%) - and want to get this geometry into Dynamo. Attached are some screenshots of the revit model and what i am currently using to bring the geometry into Dynamo.

 ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/1/6180369dffb7c3f6c01f745ad5cfa291d141d0c6.png) ![](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/a/ea4da68161863dbf1712293d3d5b6c82273e7465.png)

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [February 8, 2017, 2:08pm UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/5 "2017-02-08T14:08:39Z")

</div>

@Atkins14  
those geometries are a little tricky to get indeed. Here’s how you can do it :

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

```
import clr

clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import*
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager
clr.AddReference('RevitNodes')
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

doc = DocumentManager.Instance.CurrentDBDocument

opt = Options()

faces = []
for i in IN[0]:
	e = UnwrapElement(i)
	ref = e.GetFaceReferences()[0]
	r = doc.GetElement(ref)
	f = r.GetGeometryObjectFromReference(ref).ToProtoType(True)
	faces.append(f)

OUT = faces
```

---

<div class="post-metadata">

**Author:** ![Atkins14](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Atkins14](https://forum.dynamobim.com/u/Atkins14)\
**Post date:** [February 8, 2017, 5:34pm UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/6 "2017-02-08T17:34:21Z")

</div>

@Mostafa_El_Ayoubi that worked a treat. thanks. The next thing is that the exterior walls are brought in as complete surface (no openings for the glazing surface). How could i extract the glazing geometry from the exterior wall geometry?  
Thanks in advance,

---

<div class="post-metadata">

**Author:** ![Mostafa\_El\_Ayoubi](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mostafa_el_ayoubi/32/7815_2.png) [@Mostafa\_El\_Ayoubi](https://forum.dynamobim.com/u/Mostafa_El_Ayoubi)\
**Post date:** [February 8, 2017, 7:15pm UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/7 "2017-02-08T19:15:55Z")

</div>

@Atkins14 ,  
I never found a way to access the exterior wall geometry with opening through the api. But here’s a little workaround … (same python code)

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

---

<div class="post-metadata">

**Author:** ![Atkins14](https://avatars.discourse-cdn.com/v4/letter/a/ce73a5/32.png) [@Atkins14](https://forum.dynamobim.com/u/Atkins14)\
**Post date:** [February 26, 2017, 4:53pm UTC](https://forum.dynamobim.com/t/get-mass-glazing-geometry-into-dynamo/9455/8 "2017-02-26T16:53:45Z")

</div>

That worked a treat. Thanks very much.
