- ;;疑问同楼上!!;;假设属性块名称为"OS"并只有一个属性(defun C:TT (/ N INS ATTDIA ATTREQ) (setq HOLDDIA (getvar "ATTDIA")) (setq HOLDREQ (getvar "ATTREQ")) (setq HOLDECHO (getvar "CMDECHO")) (setvar "ATTDIA" 0) (setvar "ATTREQ" 1) (setvar "CMDECHO" 0) ;;(if (not (tblsearch "BLOCK" "OS")) ;; (MBA);生成带属性图块 ;;) (setq N 1);起始数值 (while (setq INS (getpoint "\n插入点/<ENTER 结束>: ")) (command "_.INSERT" "OS" INS 1 "" 0 N) (setq N (1+ N)) ) (setvar "ATTDIA" HOLDDIA) (setvar "ATTREQ" HOLDREQ) (setvar "CMDECHO" HOLDECHO) (princ))
|