- ;;;wkq004
- (defun c:tt (/ H NEWH PMCC PMX PMY XS XSDX XSH)
- (setq xs (getvar "SCREENSIZE"))
- (setq xsh (cadr xs))
- (setq pmcc 15.4) ;(getreal "输入屏幕英寸数:")
- (setq pmx 1366)
- (setq pmy 768)
- (setq xsdx (* 25.4
- (sqrt (/ (* pmcc pmcc) (+ (* pmx pmx) (* pmy pmy))))
- )
- )
- (setq h (getvar "VIEWSIZE"))
- (SETQ BL (GETINT "\n输入显示比例尺:1:"))
- (setq newh (* xsh xsdx (/ bl 1000.0)))
- (command "zoom" "c" (getvar "VIEWCTR") newh)
- (princ)
- )
|