 - (defun C:tt (/ ss str)
- (while (not ss)
- (setq ss (ssget "_+.:S:E"))
- (if (and ss (> (sslength ss) 1))
- (progn (setq ss nil) (princ "选择在重叠区域;请重新选择:"))
- )
- )
- (setq str (getstring "超链接文本:"))
- (if (and str (> (strlen str) 0))
- (seturl (ssname ss 0) str)
- )
- (princ)
- )
|