And have you tried the OOTB Nodes?
The archi-lab node Create Annotation Tag has an error on line 94 BuiltInCategory.OST_SpaceTags should be BuiltInCategory.OST_MEPSpaceTags
Just a note - use an Element’s UniqueId property rather than ElementId. See API remarks (emphasis mine)
The Value within the ElementId is only unique with a single project. It is not unique across several projects. The Id can be used to retrieve a specific element from the database when needed. However ids are subject to change during an Autodesk Revit session and as such should not be retained and used across repeated calls to external commands. If a manner is needed to uniquely identify an element beyond this limitation then a shared parameter should be added to the element containing a unique identifier managed by the external application.
