Jump to content

My zoom window macro stopped working


Recommended Posts

This macro worked great for years. Now all of a sudden, it stopped.

 

I can't figure out why

 

 

 

(defun c:zw ()
   (setq pt1 (getpoint "\nSelect First Window Point: "))
   (setq pt1 (osnap pt1 "_endp"))
   (setq pt2 (getpoint "\nSelect Second Window Point: "))
   (setq pt2 (osnap pt2 "_endp"))
     (command "zoom"
     "w"
   pt1
   pt2
     ) ; end zoom
    (princ)
) ; end program

Link to comment
Share on other sites

Perhaps allow for language changes:

 

(defun c:zw ( / p1 p2 )

 (if (and (setq p1 (getpoint "\nSelect First Window Point: "))
          (setq p1 (osnap p1 "_end"))
          (setq p2 (getcorner "\nSelect Second Window Point: " p1))
          (setq p2 (osnap p2 "_end")))

   (command "_.zoom" "_w" p1 p2)
 )
 (princ)
)

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...