Unfortunately having technical issues so cant open Revit to have a look at how to achieve this for you but have a look on this forum post:
Seems to be doing something very similar to what you’re trying to achieve
Unfortunately having technical issues so cant open Revit to have a look at how to achieve this for you but have a look on this forum post:
Seems to be doing something very similar to what you’re trying to achieve