How to bulk override Crop Region line style for Viewports on Sheets?

Hi everyone,

I’m looking for a robust way to bulk override the Crop Region (OST_CropBoundary) line style for selected Viewports on a Sheet using the Revit API/pyRevit.

Standard SetCategoryOverrides and SetElementOverrides seem to fail or be restricted when applied to Crop Regions of Section/Elevation views placed on Sheets. However, I’ve seen this functionality in existing tools (like Jean-Marc Couffin’s), so I know it’s possible.

Does anyone have a recommended approach or a snippet to achieve this?

Thanks in advance!