Dec 10, 2020
Match View's cropbox shape
Do you want to match CropBox of one view and apply it to many others? Here is a Snippet with a function to do so.
CropBox
Here is a simple way to get Match your CropBox to another view. Also it's good to know that CropBox has a class of BoundingBoxXYZ.
You just need to provide 2 views in this function to match CropBox.
There is a method view.GetCropRegionShapeManager() that allows us to .GetCropShape() and to SetCropShape().
Want to Learn More?
🔥 Amazing Revit API Resources!
Join Revit API
Newsletter Today!
Join Us!
which is already read by 6000+ people!
![](https://framerusercontent.com/images/svHzzMLtnnRCxtCUwbgAm6CUeB8.jpg)
![](https://framerusercontent.com/images/Y44kwhY0i7q37LzXUjrlxeGUo.jpg)
![](https://framerusercontent.com/images/lqKYmh8rqwZwgY2C9MSQER6iBCI.jpg)
![](https://framerusercontent.com/images/SyGCvJ3dbHsJEyklWWBhweY.jpg)
![](https://framerusercontent.com/images/DwiaUdmQHs3FVdDH2PXwAr0Y.jpg)
Get short Revit API Lessons and Tips directly in your mail!