Window annotation

hello everyone I’ve been trying create a window elevation annotation system for Revit and its not very reliable it only works certain walls and windows