mass insertion of equations and custom properties into past parts and assemblies

can someone help me out i am trying to create a macro to insert a few equations and custom properties into all parts and assemblies in a user specified folder with out losing any of the model

SolidworksApi macros