Change properties of PDM parts and assemblies

I want to make a macro to change y add the properties ofparts inside the PDM
the macro adds the properties but i cant add the valueSolidworksApi macros