本帖最后由 1993063 于 2016-5-27 01:29 编辑
- (defun c:tt ( / s sc )
- (setq sc
- (cond
- ((getreal "\n块比例<点块获比例>"))
- ((vla-get-xscalefactor (vlax-ename->vla-object (car (entsel)))))
- )
- )
- (if (ssget)
- (vlax-for s (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object)))
- (vla-put-xscalefactor s sc)
- (vla-put-yscalefactor s sc)
- )
- )
- )
|