How to Auto-Dimension in Drawing?? (macro)

How I create Auto-Dimension in Drawing view?
can you help me?
Give me some Example (macro)

Thank youSolidworksApi macros