- ;标注文本归原始位,作者:【KAIXIN】,QQ:295963716
- ;本程序需要KAIXIN通用函数的支持
- (DEFUN C:XX (/ SS I S1)
- (KX-COMA)
- (KX-princA "标注文本归原始位")
- (KX-PRINC "标注对象")
- (setq ss (ssget '((0 . "*DIMENSION")))
- i -1
- )
- (while (setq s1 (ssname ss (setq i (1+ i))))
- (if (> (KX-get-DXF 70 s1) 32)
- (command "dim" "home" (list s1 '(0 0 0)) "" "exit")
- )
- )
- (KX-COMB)
- )
|