How to transfer annotations (dimensions, Gtol,...) from a drawing to a Model Based Definition annotation in the 3D part ?

Hello,

I want to transfer annotations (let say a dimension as a starting point, but it can be also Gtol, rugosity,...) from a drawing to a Model Based Definition annotation in the 3D part, thanks to an API.

Thanks for your help !

SolidworksApi macros