Curtain System by Face error

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?

curtain system by face.dyn (8.8 KB)

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:

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

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?