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:
- Get all Views using “All Elements of Category” (Views).
- Filter only Section Views by selecting them using “List.GetItemAtIndex” (manually specifying indices).
- Select Target Categories: Walls, Floors, and Roofs.
- Define Override Properties:
- Color Palette → Black.
- Fill Patterns → Solid Fill.
- OverrideGraphicSettings.ByProperties to apply color and pattern.
- 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)