Hello! First post here. Pretty new to dynamo, I’ve only made a few simple scripts and I’m starting to really see the possibilities. So, my problem- I need to create a filled region type for each drafting fill pattern in my project. They can all be named the same as the fill pattern and each fill pattern can be applied as a background pattern in the same tone of gray in the filled region properties. I’d also like to have a drafting view where dynamo creates a little filled region swatch for each type it creates. I’ve tried a couple things in dynamo and googled a bunch and can’t seem to find anywhere where someone else has asked this. I’m basically creating a library of hatch patterns to be used in floor finish plans (I’m an interior designer). Any thoughts are appreciated!
Have you tried using the built in color scheme feature in Revit? You can apply a color scheme with patterns then it will create a legend for you as well. For this you’ll want to use a parameter to color by like Floor Finish which is built in to the rooms. I have built a Dynamo script to color and create a legend as you are describing but only for elements where Revit won’t let you apply a color scheme - in our case it was for masses which we use early on for planning purposes.