本帖最后由 jialun22 于 2022-2-8 13:43 编辑
各位,我在动态块内定义属性为多行时,command命令插入之后会弹出文字窗口,是否可以取消,或者有什么别的插入方式不弹出窗口,代码如下:
- (defun c:ttt()
- (setq cmdecho (getvar "cmdecho"))
- (setvar "cmdecho" 0)
- (setvar "attdia" 0)
- (setq inspt (getpoint "\n选择插入点:"))
- (setq blkname "TITLE")
- (setq n1 (getstring "\n请输入工程名称:"))
- (setq n2 (getstring "\n请输入项目名称:"))
- (command "insert" blkname inspt 1 1 0 n1 "" n2 "")
- (setvar "cmdecho" cmdecho)
- (setvar "attdia" 1)
- (princ)
- )
|