Looking for macro examples for setting custom properties and solidworks variables

I want to write a simple macro to set a custom properties from a pull-down list and automatically set some other properties based on that selection. Does anyone have an example that could help point me in the right direction? Specifically, I'd like to set a custom material description from the pull down list and from that selection set other properties like our custom material number, SolidWorks material, material thickness, default sheet metal bend radius, and bend deduction. All of my settings listed above would be determined by the initial custom material setting. Any help would be much appreciated!

SolidworksApi/macros