Writing custom property values depending on features

Hi Folks

I'm trying to create a BOM that gives me information on what type of part each component is. To do this, I need a macro that will change the default "NO" property to yes, if a certain feature is present.

For instance, traverse an assembly looking at parts, if I have a sheet metal feature present, change custom Property "SHEETMETAL" to "YES", if there is a weldment feature, set Custom property "WELDMENT" to "YES" etc.....

Could anyone point me in the direction of a macro that could do this or pointers on where to look to get going with this kind of detail?

Many thanks

Deri

SolidworksBill Of Materials