Schedule Door with Dynamo

You may check this out.
I tried to replicate this and it is working. My problem is I cannot select multiple doors and generic annotation at the same time. the data connection is lost

Tagging a Legend in Revit