i was trying to add a MULTILEADER using the following code. in the image shown below, what seems odd to me is the one on the left should look like the one in the middle, which i manually created. i don't know how autocad determines which side to put the text. but the one on the right side was created by the code "correctly". if your acad version supports multileader, can you do a test? btw, i poked around the multileader style settings and didn't find a clue. thanks.
(defun C:AML (/ ms pt1 pt2 lstCoord arrCoord mld)
(setq ms (vla-get-modelspace
(vla-get-activedocument (vlax-get-acad-object))
)
)
(setq pt1 (getpoint "\nPick 1st point: ")
pt2 (getpoint pt1 "\nPick 1st point: ")
)
(setq lstCoord (list (car pt1)
(cadr pt1)
(caddr pt1)
(car pt2)
(cadr pt2)
(caddr pt2)
)
arrCoord (vlax-make-variant
(vlax-safearray-fill
(vlax-make-safearray vlax-vbdouble
(cons 0 (1- (length lstCoord)))
)
lstCoord
)
)
)
(setq mld (vla-addmleader ms arrCoord 0))
(vla-put-textstring mld
"WHAT IS GOING ON?\\PI WANT IT TO BE ON THE OTHER SIDE!"
)
(princ)
)