Jump to content

Zoom to center


wimal

Recommended Posts

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.

Link to comment
Share on other sites

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]) 

Link to comment
Share on other sites

(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

Link to comment
Share on other sites

  • 6 years later...
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

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...