How to use the API to modify the dimensions of the SW label to display the diameter as the diameter in the Dimension Property Manager?

How to use the API to modify the dimensions of the SW label to display the diameter as the diameter in the Dimension Property Manager?As shown in the picture below

SolidworksApi/macros