Attached is a file with an example of how to do it....
Open the file, take a look of how the "SM-Blank_Sketch" is done... then look at the equations... and finally look inside the custom properties... all that information can be used on BOM's, Lists, MRP, etc., etc.
Have fun!
I think, you made my day
regards,
Ilpo