- ;;;设置屏幕大小 (SetScreenSize 400 300)
- (defun SetScreenSize (Width height / doc oldsize doc w1 h1 dw dh)
- (setq doc (vla-get-ActiveDocument (vlax-get-acad-object)))
- (setq oldsize (getvar "SCREENSIZE"))
- (setq W1 (vla-get-width doc))
- (setq H1 (vla-get-Height doc))
- (setq dw (- w1 (car oldsize)))
- (setq dh (- h1 (cadr oldsize)))
- (vla-put-width doc (+ dw width))
- (vla-put-height doc (+ dh height))
- )
|