vla-add method==> Mtext ??????

vla-add method==> Mtext ??????

neam
Collaborator Collaborator
683 Views
2 Replies
Message 1 of 3

vla-add method==> Mtext ??????

neam
Collaborator
Collaborator

Hi everyone

How can we set the justification of mtext (middle center "mc") insertion point with the vla-add method.

 

(setq mtobj

(vla-addMtext Space
(vlax-3d-point (setq pt (polar (vlax-curve-GetPointAtParam obj pr) (* pi 0.5) 0)))
0.0
(strcat "{\\fArial;" (strcat textp (itoa n_inip)) "}")
)

)

0 Likes
Accepted solutions (1)
684 Views
2 Replies
Replies (2)
Message 2 of 3

komondormrex
Mentor
Mentor
Accepted solution

hi, 

try this for middle center after mtobj is created. 

(vla-put-attachmentpoint mtobj 5)
(vla-put-insertionpoint mtobj (vlax-3d-point pt)) 

Message 3 of 3

neam
Collaborator
Collaborator

Thank you very much for your attention and guidance.

0 Likes