本帖最后由 xyp1964 于 2017-11-20 21:55 编辑
- ;; xyp-ScaleEntity 缩放实体或选择集 (xyp-ScaleEntity ename point sc)
- (defun xyp-ScaleEntity (s0 pt sc / i s1)
- (cond ((= (type s0) 'ENAME)
- (vla-scaleentity
- (xyp-e2o s0)
- (vlax-3D-point (trans pt 1 0))
- sc
- )
- )
- ((= (type s0) 'PICKSET)
- (setq i -1)
- (while (setq s1 (ssname s0 (setq i (1+ i))))
- (xyp-ScaleEntity s1 pt sc)
- )
- )
- ((= (type s0) 'LIST) (foreach s1 s0 (xyp-ScaleEntity s1 pt sc)))
- )
- s0
- )
|