Hello @shuzmm ,
i have done this exercise before,
you can have a reference from this script,
if it is not working in your system then try to adjust node highlighted in the screenshot.
GeometryCutBySectionView.dyn (57.0 KB)
Basic logic behind this script is to create a solid box from section view (depend upon the Length, width and height) and try to find the elements clash with the solid box. Elements which are clash with the box will be visible in the section view. (it may be half cut or completely visible)