ForYang 发表于 2019-9-28 10:49:35

文本字体

请问各位大神(command "text")如何设置字体?

start4444 发表于 2019-9-28 12:35:56

command "STYLE"

Andyhon 发表于 2019-9-28 13:30:02

如果有现成的可以
(setvar 'textStyle 2beuse)
再接
(command "text")

要不也可
(command "text" "S" Pause ...)

shcvip 发表于 2019-9-29 17:14:36

Andyhon 发表于 2019-9-28 13:30
如果有现成的可以
(setvar 'textStyle 2beuse)
再接


命令: (setvar 'textStyle 2beuse)
; 错误: AutoCAD 变量设置被拒绝: TEXTSTYLE nil

小万LISP 发表于 2019-9-29 19:23:04

(entmake
    (list
      '(0 . "TEXT")       ;图元类型:单行文字
      '(41 . 0.8)         ;宽度比例
      '(7 . "romans+hzdx")    ;文字样式
      (cons 1 "内容")       ;文字内容
      (cons 10 pt)         ;起点
      (cons 40 height)    ;文字高度
      (cons 8 "图层")      ;图层名
      (cons 62 颜色编号)      ;颜色,bylayer=256
      (cons 72 dz)         ;文字对正类型:0 左,1 中下
      (cons 50 0)         ;文字旋转角度
      (cons 51 0)         ;文字倾斜角度
    )
)

ketxu 发表于 2019-9-30 14:20:42

shcvip 发表于 2019-9-29 17:14


It's mean your variable 2beuse nil
页: [1]
查看完整版本: 文本字体