好的,太好了!
所以我创建了文本,我试着把文本放在中间居中对齐。我做到了:
- (vl-load-com)
- (setq doc (vla-get-ActiveDocument (vlax-get-Acad-Object))
- spc (if (zerop (vla-get-activespace doc))
- (if (= (vla-get-mspace doc) :vlax-true)
- (vla-get-modelspace doc)
- (vla-get-paperspace doc))
- (vla-get-modelspace doc)))
- (setq begin (getpoint "\nCenter of Cell: "))
- (setq 3dpt (vlax-3d-POINT begin))
- (if (setq inside (getstring T "\nContents within box: "))
- (while (= "" inside)
- (setq inside (getstring T "\nInvalid Input, Enter Contents within box: "))))
- (setq slen (strlen inside))
- (SETQ TEXT (VLA-ADDTEXT spc INSIDE 3dpt 0.09375))
- (vla-put-alignment text 10)
我知道需要更改的属性和值,但如何执行命令,使文本在对齐10(中间)的指定点处输入?
有什么想法吗?
马特 |