Maximize Grids 3D Extents and boundaries of model

Hi All,

I have Revit model with just grids and levels (copied from a linked model).

if I try to use the Maximize3DExtents() method, grids won’t extend to the higher level because there are no modelled elements. They just extend to the boundary of the model (heigth=0)

Could you please point me to the right direction if there is one?

The only workaround I can think of is to add a column before to Maximize3DExtents and then delete it.

Thanks.