RIR c# Add CUrtain Grid

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 (31.1 KB)
add curtain grid study.gh (10.3 KB)
add curtain grid study.rvt (5.1 MB)

Thanks

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

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.