lp_design 发表于 2011-4-19 23:29:49

用entmake制造的文字对齐点一定要在左边吗?请高手指点

请问的改文字的对齐方式按下面方式不行,什么原因呢?
(setq entl(list        '(0 . "TEXT")
                                '(100 . "AcDbEntity")
                                '(100 . "AcDbText")
                                (cons 1 string)
                                (cons 7 "TITXV")
;;;                                (cons 10 insertionpt)
                              (cons 11 insertionpt)
                                (cons 40 hight)
                                (cons 41 width)
                                (cons 72 0)
                                (cons 73 0)
                          ))
(if (setq ent        (entmakex entl
                )
      )
    ent
)
(setq entl (subst (cons 72 4) (cons 72 0) entl))
(entmod entl)

x_s_s_1 发表于 2011-4-19 23:53:17

详细的看一下dxf参考的text组码就明白了。主要是72,73组码的组合
页: [1]
查看完整版本: 用entmake制造的文字对齐点一定要在左边吗?请高手指点