DragModelDimension

I have a drawing sheet with detailed view (circle) and I have given a dimension on that detailed view. When I change dimension of part of parent view detailed view dimension moves irrelevant position on layout(goes far away from its drawing view).I want to  refresh its position to close.  I have found   2014 SolidWorks API Help - DragModelDimension Method (IDrawingDoc)  this link. However I cannot able to figure it out. Are there any code for this problem to solve?

Best regards

SolidworksApi macros