Rectangular wall opening dimensions

Hi all

I am trying to find all the associated elements on the wall and have to detail out in table with L and H of the host elements - door, window, curtain wall embed, opening, etc using FindInserts() method of wall class.

For rectangular opening, through revit lookup I could see the unconnected height is available as a parameter but cannot find length parameter.

Can anyone please help?