AnsweredAssumed Answered

View location confusion.

Question asked by Todd Carpenter on Mar 19, 2015
Latest reply on Mar 29, 2015 by Todd Carpenter

I'm not quite sure how View positions are supposed to work.  My drawing starts out this way:

 

 

Then this code should move it to 0,0 - or so I thought:

 

double[] curPos = null;
            curPos = (double[])swView.Position;
            
           //Debug.wri
           Debug.WriteLine(string.Concat("Current Position of: ", swView.GetName2(), " is: ", curPos[0].ToString(), ", ", curPos[1].ToString()));


           swView.Position = new double[] { 0.0, 0.0 };


           swDoc.ForceRebuild3(true);
           swDoc.GraphicsRedraw2();
           curPos = (double[])swView.Position;
           Debug.WriteLine(string.Concat("And now Position of: ", swView.GetName2(), " is: ", curPos[0].ToString(), ", ", curPos[1].ToString()));
           swDrawing.ActivateSheet("Sheet1");

 

But it looks like this:

 

 

So what am I missing here?  I thought the lower left corner of the View, would be right on top of the lower left corner of the sheet?

 

Thanks

Outcomes