wimal Posted October 1, 2014 Share Posted October 1, 2014 Please can someone explane me about the value , that request when we try to zoom to center. And why cant we activate snap on during this option. Quote Link to comment Share on other sites More sharing options...
hanhphuc Posted October 1, 2014 Share Posted October 1, 2014 Try these which working? red can be modified= magnification/ height (command "zoom" "c" (getvar "viewctr") [color="red"]10[/color]) (command "zoom" "c" (getvar "viewctr") "H" [color="red"]10[/color]) (command "zoom" "c" (getvar "viewctr") "M"[color="red"]2[/color]) Quote Link to comment Share on other sites More sharing options...
wimal Posted October 1, 2014 Author Share Posted October 1, 2014 Ok.thanks a lot . I will try your codes Quote Link to comment Share on other sites More sharing options...
wimal Posted October 1, 2014 Author Share Posted October 1, 2014 (defun c:zc() (setq ss (car (entsel "\nSelect line:"))) (setq assolist (entget ss)) (setq end1 (cdr(assoc 10 assolist))) (command "zoom""C"end1 2000 "") ) I try to zoom to one end of the selected line using above code. It is working nicelly. but in some drawings (Test 2)the line dissapier why that. TEST1.dwg TEST2.dwg Quote Link to comment Share on other sites More sharing options...
wimal Posted October 1, 2014 Author Share Posted October 1, 2014 Mistake found mysels. I have to set UCS to World Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted October 1, 2014 Share Posted October 1, 2014 Also consider the zoomcenter method of the Application Object, e.g.: (vla-zoomcenter (vlax-get-acad-object) (vlax-3D-point 1 2 3) 10.0) Quote Link to comment Share on other sites More sharing options...
EFL Posted June 4, 2021 Share Posted June 4, 2021 On 10/2/2014 at 12:48 AM, Lee Mac said: Also consider the zoomcenter method of the Application Object, e.g.: (vla-zoomcenter (vlax-get-acad-object) (vlax-3D-point 1 2 3) 10.0) Thnx Lee Mac! I did this: (setq ZoomCeneter (vlax-3D-point (getpoint))) (vl-propagate 'ZoomCenter) If you use (vl-propagate 'ZoomCenter) you can use it in all opened docs Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.