How to attach balloon to Gtol or Linear dimension?

Hello Everyone,

I am trying to add balloon in SolidWorks part using APIs and the balloon should be attached to the Geometric tolerance or linear dimension.
Example :-

Please let me know how it should be done, either by using APIs or on the UI.

Thanks and Regards,
Mahadev

SolidworksApi/macros