需加载XLRX_API使用:
 - (defun c:tt (/ e d pts vec)
- (setq d (getdist "\n输入偏距<800>:"))
- (if (null d)
- (setq d 800)
- )
- (while (setq e (car (entsel "\n选择线性标注:")))
- (setq pts (xlrx-get e "stretchpoints")
- vec (XLRX-Vec-V*S
- (XLRX-Vec-Unit (mapcar '- (caddr pts) (car pts)))
- d
- )
- )
- (XLRX-moveStretchPoint e vec 2 3 4)
- )
- (princ)
- )
|