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?
Set Element Overrides should work. How are you collecting the crop regions and/or views? An example, below of collecting the crop region -though there is likely a better method nowadays. Then you should just be able to use the view element just set the element overrides.