# Curtain System by Face error

**URL:** <https://forum.dynamobim.com/t/curtain-system-by-face-error/28067>\
**Category:** Revit\
**Created:** [November 5, 2018, 5:06pm UTC](https://forum.dynamobim.com/t/curtain-system-by-face-error/28067 "2018-11-05T17:06:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@johnson](https://forum.dynamobim.com/u/johnson)\
**Post date:** [November 5, 2018, 5:06pm UTC](https://forum.dynamobim.com/t/curtain-system-by-face-error/28067/1 "2018-11-05T17:06:55Z")

</div>

I’m trying to create a curtain system from a mass face in Dynamo using the CurtainSystem.ByFace node and getting an error:

“Warning: CurtainSystem.ByFace expects argument type(s) (Surface, CurtainSystemType), but was called with (Autodesk.DesignScript.Geometry.Surface, Revit.Elements.Element).”

Eventually, I’m trying to create the Mass in Dynamo. But for now, I can’t even get a generic example to work. Any ideas?

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/7/c7ef375dc757877eb39711b9f13c17e4a277f69a.png) [curtain system by face.dyn](https://forum.dynamobim.com/uploads/short-url/aWJTZjW3Ab4yqVIG1Xm2zNmtGci.dyn) (8.8 KB)

---

<div class="post-metadata">

**Author:** ![lucamanzoni](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/lucamanzoni/32/56718_2.png) [@lucamanzoni](https://forum.dynamobim.com/u/lucamanzoni)\
**Post date:** [November 5, 2018, 5:29pm UTC](https://forum.dynamobim.com/t/curtain-system-by-face-error/28067/2 "2018-11-05T17:29:24Z")

</div>

You need a CurtainSystemType, but you are feeding in a Element.  
Try something like this, if you already know the name you can skip the first nodes:

 ![CurtainSystem](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/5/e5dd399130a18c5506f17365cefbe4b15c31cb15.png)

---

<div class="post-metadata">

**Author:** ![johnson](https://avatars.discourse-cdn.com/v4/letter/j/d07c76/32.png) [@johnson](https://forum.dynamobim.com/u/johnson)\
**Post date:** [November 6, 2018, 1:42pm UTC](https://forum.dynamobim.com/t/curtain-system-by-face-error/28067/3 "2018-11-06T13:42:30Z")

</div>

You got it luca! Thanks for the reply, I’m still learning the ins and outs of types and elements.

---

<div class="post-metadata">

**Author:** ![t\_peter](https://avatars.discourse-cdn.com/v4/letter/t/b77776/32.png) [@t\_peter](https://forum.dynamobim.com/u/t_peter)\
**Post date:** [August 18, 2020, 7:40am UTC](https://forum.dynamobim.com/t/curtain-system-by-face-error/28067/4 "2020-08-18T07:40:05Z")

</div>

![faces](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/1/2/1280997f230c9aba6552d547cf51b2bdac169935.jpeg)

Hello, everyone  
I have a problem with same node but from other side.  
I’ve pick faces from family mass but node returned an error (A Face Reference can only be obtained from an Element).  
I see on your screenshots that you also pick nodes from revit and there is no error.  
What can it be?
