Scope box is not working for Sections is which is placed inclined to element

Hi All,
I have created the Dynamo Script which create Scope box from Revit Sections.

Issue:- Dynamo script is working fine for the sections which is placed in X & Y plane on plan & create 3D view of this sections.But for inclined Section its not working (Bounding Box not matching with Scope box)

1.Working fine for X & Y Plane.

2.Not Working for Inclined Plane or Section.


Any Solution for this ?
Regards
Tushar R

1 Like

Gavin Crump had a tutorial about this. https://www.youtube.com/watch?v=5dvl7IHkW0U

I suspect your node 3DView by BoundingBox might be the one not working. And is likely standard XYZ based without considering rotation.

Perhaps all you need is to get the rotation of the element you are getting the bounding box of, and then rotate the SectionBox after the view is created. It won’t make any difference for standard XYZ based