extract dimensions from drawing file.

How do i exact all the dimensions from a drawing file.

my problem is that i have built an assembly and i need to extract all the dimensions so as to allocate tolerances for relevant dimensions that take part in the mate process....

kindly help

regards arun

SolidworksApi macros