Drawing automation (IView::GetXform & IView::GetOutline) ???

Hi,

I would like to understand how to use these two methods of IView (GetXform and GetOutline).

I've read in api documentation that GetXform should return the location of the drawing view center and GetOutline should return the coordinates of the bounding box of a view.

So, if we get the result of GetOutline as

MinX, MinY, MaxX, MaxY,

and doing the following calculation:

CenterX = MaxX - MinX

and

CenterY = MaxY - MinY

The result of CenterX and CenterY should be the same the values returned by GetXform. BUT IT'S NOT! It seems like the values returned by GetXForm aren't the center of the view.

Can someone tell me why? Is there any influence of the scale of the view in the result? If so, How does it works?

I'm trying to write a program to possition views in a drawing but they never are positioned where I want.

Thanks in advance,

Vinicius

SolidworksApi macros