Any Other Best Method to Override Walls, Floors, and Roofs to Black in Section Views Using Dynamo?

Hi everyone,

I am working on a Dynamo script to override the graphics of Walls, Floors, and Roofs in Section Views, setting them to black fill and black projection lines. My current approach works, but I am wondering if there is a better or more efficient method to achieve the same result.

Current Approach:

  1. Get all Views using “All Elements of Category” (Views).
  2. Filter only Section Views by selecting them using “List.GetItemAtIndex” (manually specifying indices).
  3. Select Target Categories: Walls, Floors, and Roofs.
  4. Define Override Properties:
  • Color Palette → Black.
  • Fill Patterns → Solid Fill.
  • OverrideGraphicSettings.ByProperties to apply color and pattern.
  1. Apply Overrides using “View.SetCategoryOverrides”.

Concerns / Questions:

  • Is there a more dynamic way to filter only Section Views?
    • Right now, I use manual indexing (List.GetItemAtIndex), but is there a way to get Section Views automatically?
  • Is there a faster way to apply overrides to multiple Section Views?
    • Currently, I manually get elements and apply overrides one by one.
  • Can this be done using Python in Dynamo for better control?
    • If there’s a Python-based approach that improves efficiency, I’d love to see an example.

I would appreciate any feedback or alternative methods to make this script more efficient, scalable, and automated.

Thank you!

(Attached is an image of my current Dynamo script for reference.)


OVERRIDE FILL PATTERN COLOR IN SECTION.dyn (23.0 KB)

Create a filter instead of using element overrides. Then use Dynamo to apply the filter to all section views. You can still start with All Elements of Category but then you can filter for Section Views specifically.

This thread should give you a starting point on how to filter view types:
Filter the Elevation Views - Dynamo

1 Like

I mean… best method I would say is to use the Coarse Fill Color Pattern and Coase Fill Color parameters for the wall, floor, and roof types in your template, and then just set the view to coarse… No View Template ever required here.

1 Like

Fair point. If you can control your views by detail level that’s a way better option.

2 Likes