Adjust Grid line

Hi all, I wonder if there is a way to us RIR to adjust the existing grid lines’ length. I don’t want to do it by changing the scope box. And I don’t want to manually do it one by one…


Hi @Jack_Zeng,

Does not ‘Element Curve’ work with Grids?

Hi @kike
It seems not to work with Element Curve at least im not doing something wrong.
I just tested it on a simple example.


Revit/RiR Version

[Window Title]
Rhino.Inside - About

[Main Instruction]
Rhino.Inside© for Revit

[Content]
Rhino.Inside Revit: 1.29.9140.19217 (2025-01-09T10:40:34)

[Expanded Information]
Rhino: 8.15.25019.13001 (Rhino 8)
Revit: 2024.3 (24.3.0.13)
CLR: 4.0.30319.42000 (4.8.9290.0)
OS: Microsoft Windows NT 10.0.22631.0

[V] Details einblenden [Web site] [Read license] [See source code] [OK]

[Footer]
Press CTRL+C to copy this information to Clipboard

For the view specific 2D grid extents you would want to use something like the below to adjust the grid (see below)

grid.SetCurveInView(DB.DatumExtentType.ViewSpecific, view, GE.ToCurve(curve))

RiR_Grid_View2DExtents.gh (10.2 KB)

Thanks Mohamed, would you mind to share you definition? I am not sure how to replicate the GhPython Template… what is the type hint for grid and view?

Forgot to attach the file, edited in the above post

1 Like

Thanks Mohamed