Change Thread Callout

I have a template part file with external thread featurenamed "Cosmetic Thread1"

I want to make a new part file from the template file by editingthe values.
How can I edit the cosmetic thread callout ?

I gotCosmeticThreadFeatureData.ThreadCallout = Callout (VB Setproperty)
from API help.

Can somebody tell me how to declareCosmeticThreadFeatureData. and how to link this to my"Cosmetic Thread1" featureSolidworksApi macros