Multiple detail views in a layout in rhinocommon c# (SOLVED !)

Here is a sample of how to add single detail view within a layout

in rhinocommon c#
I tried the same thing for multiple detail views but something is wrong. Whole layout is getting inside the
smaller detail views, as if nested. i guess I did not fix scale. I think I need to fix scale of the specific drawing, for that specific detail view. Not sure about how to do it.

I need to create several detail view in one layout.
Would be nice to have a code sample for at list two detail view in one layout.
It would be a big help.

Best regards

I had some silly mistake in the code.
It works the same way for single detail view.

multiple and single detail views work same as layout sample code.

The problem is solved.!