Iterating through Dimensions

Does anyone have any sample code,in C# or VB.NET, of how to iterate through an assembly or part and finds all the dimensions used to generate the part? I would like to be able to enable/disable the "Mark for Drawing" on most of the assemblies I design since most of the dimensions do not need to be on the final drawing in my SolidWorks drawing.

SolidworksApi macros