本帖最后由 yaojing38 于 2025-1-17 14:57 编辑
- (defun c:tt (/ ent jd bl ss1 tc ys)
- (vl-load-com)
- (setq ent (car(entsel "\n选取填充:")))
- (sssetfirst nil (setq ss1 (ssget (vl-remove nil (list '(0 . "HATCH") (setq tc (assoc 8 (entget ent))) (if (setq jd (assoc 52 (entget ent))) jd) (if (setq ys (assoc 62 (entget ent))) ys (assoc 62 (entget(tblobjname "LAYER" (cdr tc))))))))))
|