How can the automatic sketch dimensions alignment?

Is it possible with such a sketch dimension to the macro?

How to measure alignment.

how to properly measure are set

How to measure the alignment drawing on the piece of media?

Such a sketch dimension to

How this auto

SolidworksApi macros