多行文本的相关内容比较多,以下比较简单,相关其他设置还需自己去查看帮助 参数依次是: 插入点 自高 文本框参照宽度 对齐方式(1=左上 2=中上 3=右上 4=左中 5=正中 6=右中 7=左下 8=中下 9=右下) 旋转角度 文本内容(换行--> \\P 改变字体的方法-->请自己去摸索) (defun mtext-make (inspt height recw alsty ang txt) (entmake (list '(0 . "MTEXT") '(100 . "AcDbEntity") '(100 . "AcDbMText") (cons 10 inspt) (cons 40 height) (cons 41 recw) (cons 71 alsty) (cons 50 0) '(72 . 5) (cons 1 txt) ) ) ) ;;测试 (mtext-make (getpoint) 200 3000 5 0 "XXXX地区XXXX项目\\P{\\fSimSun|b0|i0|c134|p2;规划设计图}" )
|