Without getting too far into the details, I am trying to generate filled regions in a generic annotation family to create a key plan. There are some Revit API and python things I’m struggling with, since I’m relatively inexperienced in these areas.
I have used the python script found here in the past:
It works well, creating filled regions with multiple loops. I believe it uses this create method:
The other two python scripts simply collect filled region types and views in the input document. The main problem is filled regions are treated differently in annotative families. Instead of detail items, their category is filled regions. Which makes sense, because this isn’t a detail item family. So I imagine there is another method that can be used to create filled regions in these families, but I’m struggling to find it. If anyone knows how to do this (or if it’s not possible) any feedback is greatly appreciated!
I have attached a simplified version of my script and an image for reference.Key Plan Family Creation.dyn (13.6 KB)
(Edit: I actually found the main issue it my original script. I was calling the wrong view element in the family. I believe the view element I was using was the view template. Ironically, the sheet element was the appropriate view for me to feed into the script. I’ll include an image so everyone knows what I mean. With this change the script works in Dynamo 1.3.3 as well as 2.0.x)