Page 1 of 1
VBA - Paning, Viewport center
Posted: Tue Mar 18, 2003 3:19 am
by Krki
Can somebody help me !!
I just want to pan to specific coordinates using VBA ( I was trying to set viewport center but something always goes wrong)
Posted: Tue Mar 18, 2003 10:33 am
by ssc
Would you please post what you have tried?
When you say "pan" do you mean move the view center?
When you say "viewport" is it an actual paperspace viewport or is the current view in modelspace?
ssc
Posted: Fri May 02, 2003 11:34 am
by Cheryl
I am having similar problems. I keep getting an object does not support this method error when trying to capture the VIEWCTR system variable value. I am also running into errors when trying to do a zoomextents. I have upgraded to Pro4 and none of the help menu examples will display even after updating my browser.
Posted: Sat May 03, 2003 1:49 pm
by John Finlay
Krki,
I have posted some code in response to Cheryl's algorithm and I split the zoom into a separate Sub so you can have a look at it and use it in your code. It is really just the Help Example with some adjustments.
------------------
Regards
John Finlay