Extending the extents of the level grids to first and last gridline

I am working on series of the routines to automatically generate levels, grids and zones from excel dashboard. So far I have I manage to make it work, however I still have few quirks that I am trying to work out.
I would like to be able to automatically stretch my level to my first and last grid lines, can anyone think of a tip, advice or a solution. I know i can do it manually but would like to overcome this step.

**

**

Edit: misread this. Let me check to see what the API options on levels are.

1 Like

This seems to be what you are after: https://www.revitapidocs.com/2020/231447e9-0963-fe1d-8177-d8ac136f835d.htm

I have not seen this in a node yet though.

1 Like

Hi all,

Maybe @Mostafa_El_Ayoubi or @erfajo is interested to add a β€œLevel.SetHorizontalExtents” (by boundingbox) node to their package. I don’t know if the API would support this function, but it would be a nice addition to the nodes below.