LISP使文本居中对齐
您好,有LISP使文本中间对齐吗? 并且,最好开始move命令抓取中心基点,因为接下来通常会发生这种情况,以便将其移动到对象的中间。 看看这个,也许是一个开始。史蒂夫 我使用以下内容作为宏。
^C^C(COMMAND "LAYER" "M" "S-ANNO-TEXT" "C" "7" "" "") 'textstyle standard 'textsize $M=$(if,$(=,$(getvar,cvport),1),0.0703125,$(*,0.0703125,$(getvar,dimscale))) mtext \j bc w 0; 颠簸颠簸 我做的第一个联想就是来自塔瓦的代码,
从他的代码中指出这个片段:
(progn
(vla-put-attachmentpoint mt acmiddlecenter)
(vla-move mt (vla-get-insertionpoint mt) p)
)
后来我在我的代码中也做了这样的事情,但我会永远记得他帮助过我的那个帖子。
(DEFUN C:mJ ()
(progn
(vla-put-attachmentpoint mt acmiddlecenter)
(vla-move mt (vla-get-insertionpoint mt) p)
)
(princ)
)
谢谢你的尝试,但这看起来不起作用。
页:
[1]