03-15-2023
12:18 PM
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
03-15-2023
12:18 PM
Here's a simple program that lets you zoom the window to a location and display it at "full size". The code must be edited to set the correct value for h. Assuming that you are working with an AutoCAD window that is maximized to fit the display and that the window size will not change you can determine h by creating a square of known size and adjusting the zoom factor so that the square is full size. Use the viewsize command to show the value for h.
You can zoom in or out with the standard zoom command but when you want a portion of the drawing at full size just use zz.
(defun c:zz (/ h p )
; Centers the view at a point specified by the user.
; The view will be full size if h is set correctly.
; To determine the value of h:
; 1. Set the AutoCAD window to your standard working size
; (e.g., maximized)
; 2. Create a square of known size and zoom so that the
; rectangle is full size.
; 3. Give the "viewsize" command, the value shown is h.
; 4. Edit the line below with the correct value for h.
(setq h 8.824)
(setq p (getpoint "\nSpecify full size windo center."))
(command "_zoom" "c" p h)
(princ)
)t
lee.minardi