Grids Extend Dynamo

hi all. i am beginner of Dynamo Revit. Today i have problem for grids in Revit

  1. Yellow line : That is Detail Lines on “Mode Sheet” (not in work plan)
    I need extend grids to yellow line

    I have researched but only create new grid ( i don’t need that )
    Can change and apply for Existing Grid but don’t create new grid ?

    Thank all

Welcome to the forum!

See the post below. It’s always best to search the forum for relative post, before posting your issue. May take some time to search, but definitely worth the effort.

thanks you for rep me, i have seen that topic before post , but i don’t know custom that code follow my ideal :frowning:
That topic of “Gerhard.p” tutorial extend grids follow scope box, but i need custom extend by "Number Silder