# RIR c# Add CUrtain Grid

**URL:** <https://discourse.mcneel.com/t/rir-c-add-curtain-grid/139387>\
**Category:** Revit\
**Tags:** windows\
**Created:** [March 14, 2022, 4:02am UTC](https://discourse.mcneel.com/t/rir-c-add-curtain-grid/139387 "2022-03-14T04:02:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![xiaf1033](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/xiaf1033/32/752976_2.png) [@xiaf1033](https://discourse.mcneel.com/u/xiaf1033)\
**Post date:** [March 14, 2022, 4:02am UTC](https://discourse.mcneel.com/t/rir-c-add-curtain-grid/139387/1 "2022-03-14T04:02:03Z")

</div>

I was trying to write a C# definition to create Revit curtain grid. I know there is a method in Revit API call AddGridLine under CurtainGrid class, but don’t know how to make that happened through RhinoInsideRevit C# component.

If anyone can help, I’d really appreciate.  
[add curtain grid study.3dm](https://discourse.mcneel.com/uploads/short-url/tIIVn8sbIQUa87JfUfwescJOngC.3dm) (31.1 KB)  
[add curtain grid study.gh](https://discourse.mcneel.com/uploads/short-url/eaOoj3zO83uSg3mvAJ44cIyFx6G.gh) (10.3 KB)  
[add curtain grid study.rvt](https://discourse.mcneel.com/uploads/short-url/4ZyJL7mr5eVQaYTmAZvSNJiol4T.rvt) (5.1 MB)

Thanks

---

<div class="post-metadata">

**Author:** ![aesthetik0717](https://sea3.discourse-cdn.com/mcneel/user_avatar/discourse.mcneel.com/aesthetik0717/32/647357_2.png) [@aesthetik0717](https://discourse.mcneel.com/u/aesthetik0717)\
**Post date:** [March 14, 2022, 4:24am UTC](https://discourse.mcneel.com/t/rir-c-add-curtain-grid/139387/2 "2022-03-14T04:24:58Z")

</div>

Few months ago, I did a walk through tutorial about scripting C# in RIR.

[![](https://global.discourse-cdn.com/mcneel/uploads/default/original/4X/0/e/8/0e867d4bdcb85e77d40c22cb999dbf34e9b48fff.jpeg "20211127 RhinoInsideRevit\_Scripting Introduction") ](https://www.youtube.com/watch?v=fg5s67rjvGo)

maybe this can help. Thanks.

Also RIR is constantly renew, so the interface and the way to I did, might not be suitable for current version RIR.
