Match scope box with (3D) section box

i can get bounding boxes of both scope box and section box, how to manipulate bounding box of scope box so it can align with bounding box of section box?

First, you wouldn’t manipulate the bounding box directly - it’s driven by the extents of the scope box (or whatever element you’re interacting with). You would have to modify the geometry of the element.

Second, bounding boxes aren’t available in the API unfortunately, so you can’t really manipulate them.

What is it that you’re trying to accomplish here? Typically you’d create the scope box to size and then automate the creation/manipulation of the section box to match.

thanks Nick, well, 3D section box cannot be saved and that’s why we need scope boxes, workflow as follow: change section box, modify scope box (i believe API still cannot create new scope box?) to align with changed section box, i recalled that i did similar work in C# API maybe in reverse order (align section box w/ scope box) but i need to search my source code, something like bounding box is the approach to tackle it to my best memory.

But why modify the section box and push its extents to the scope box when you can just modify the scope box directly? You can’t automate the creation or modification of a scope box but you can automate a section box. You don’t need to modify the section box since a 3D view automatically sets the section box to the extends of the assigned scope box, but you’d have to go from scope box to section box anyway.

just for visual reason when creating/modifying scope boxes, scope box is indeed a 2nd citizen status in API, what i can do now is just aligning center to center of both boxes, hope factory can open up API for scope box.

Solved: Create / Modify Revit Scope Boxes through API - Autodesk Community