快速给直线(或其他图元)增加超链接文字。
快速给增加超链接文字。如:输入命令,选择直线(或其他图元),输入文字回车, 直线(或其他图元)就带超链接文字了?
(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)
) 好像特性里就有超链接 看看能用不 不知道路径是绝对的还是相对的
页:
[1]