对于文字或多行文字实体!
如果创建了文本,则可以使用:
- (entmake (list '(0 . "TEXT") (cons 8 layer) '(10 0 0 0) (cons 40 text-height) (cons 1 "value xxxxxxx")
- (cons 50 angle) '(7 . "Arial") '(72 . 2) '(73 . 2) (list x y z) )
如果文本已存在:
- (if (setq nm (car (entsel )) ) ; Select
- (progn
- (setq vob (vlax-ename->vla-object nm) )
- (vla-put-TextString vob nms) ; different properties
- (vla-put-Layer vob layer)
- (vla-put-Height vob htext)
- (vla-put-Rotation vob uradian)
- (vla-put-Alignment vob vtag)
- (vla-put-ScaleFactor vob wft)
- ))
您可以使用以下工具检查可用的属性和方法:
|