Jump to content


Zoom In and Zoom Out Input Scale Options


3 replies to this topic

#1 Jabbajeff

    Newbie

  • Members
  • Pip
  • 5 posts
  • LocationEngland

Posted 11 February 2025 - 10:30 PM

ZOOMIN and ZOOMOUT
Can anyone tell me how I adjust the scale parameters for the above command?
When I type ZOOMIN, I get an Input Scale of 2
When I type ZOOMOUT, the Input Scale changes to 0.25
I understand that I can change the scale once I've typed in the command but what if I want an automatic value when I enter the command?

Is there an over ride command which lets me change them to any value I want?

#2 Dsw

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationItaly

Posted 12 February 2025 - 10:24 AM

Hi Jeff,
I don't know if is possible to adjust the scale parameters, but a simple way to do it is redefine the commands (ZOOMIN & ZOOMOUT)

Look at the follow LISP sample code...
(defun C:ZOOMIN ( )
  (progn
	(setvar "CMDECHO" 0)
	(command "_zoom 2x")
	(setvar "CMDECHO" 1)
  )
)

(defun C:ZOOMOUT ( )
  (progn
	(setvar "CMDECHO" 0)
	(command "_zoom 0.25x")
	(setvar "CMDECHO" 1)
  )
)

----
My open-source and freeware projects
https://sourceforge....ftware/profile/

#3 Jabbajeff

    Newbie

  • Members
  • Pip
  • 5 posts
  • LocationEngland

Posted 12 February 2025 - 07:29 PM

Hi DS,
That looks great - except I don't know how to programme in LISP!
I think a quick self-learning session is in order. Many thanks for your input. Cheers!

#4 Dsw

    Advanced Member

  • Members
  • PipPipPip
  • 33 posts
  • LocationItaly

Posted 13 February 2025 - 10:19 AM

Hi Jeff,
glad to help you :)
----
My open-source and freeware projects
https://sourceforge....ftware/profile/





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users