本帖最后由 Kye 于 2019-10-1 16:17 编辑
 - [code=lisp](defun LM:editbox ( str / han )
- (and (< 0 (setq han (load_dialog "acad")))
- (new_dialog "acad_txtedit" han)
- (set_tile "text_edit" str)
- (action_tile "text_edit" "(setq str $value)")
- (if (zerop (start_dialog)) (setq str nil))
- )
- (if (< 0 han) (unload_dialog han))
- str
- )
- (defun c:qe ( / ent enx str );_by LEE MAC
- (if (and (setq ent (car (nentsel)))
- (wcmatch (cdr (assoc 0 (setq enx (entget ent)))) "*TEXT,ATTRIB")
- (setq str (LM:editbox (cdr (assoc 1 enx))))
- (entmod (subst (cons 1 str) (assoc 1 enx) enx))
- )
- (entupd ent)
- )
- (princ)
- )
[/code]
楼主给的图纸,用这个程序就够了,手工改,多带劲 -----------------
可参考这个 http://bbs.mjtd.com/forum.php?mod=viewthread&tid=111287稍微改下就可实现楼主的愿望,支持自己动手,昨天给的代码就撤了啊
|