Auto Fill Blocks

Hi,

I'm new with the Solidworks API,

i want to do a very simple thing,

When i insert a block,  want the fields automatically filled, with a macro

i'm lost with the various syntaxes !

example :

a Ø20mm radius

i insert the block

field 1 : 20mm (filled manually or via the quote )

field 2 : +/- : 2mm (condition , if field 1 < 6 then field 2 : "1 mm", if field 2 > 6 then field 2 : "2 mm" )

Thank you

SolidworksApi macros