Hello to everybody here!
Could someone help me with this problem?
Text content is DXF code 304 of the MLeader entity.
When I change it via LISP text is changing but the horizontal line of the MLeader stills as it were before...
It even could be broken if the length of old and new texts is different...
I tried "(redraw en)" and even "(vla-update ...)" but without any benefit...
Thank you all for your help!
Solved! Go to Solution.
Solved by pbejse. Go to Solution.
Does a REGEN fix the problem?
1. Draw a Multileader with LONG text like "abcdefg" with "Underline top line" Leader connection style.
(setq en (car (entsel))) (setq el (entget en)) (setq el (subst (cons 304 "abc") (assoc 304 el) el)) (entmod el)
2. Run this simple code and see what will happen with this SHORT text for example...
: ((
Hows about
(setq en (car (nentselp)))
(vla-put-textstring (vlax-ename->vla-object en) "abc")
or even
(setq en (car (entsel)))
(vla-put-textstring (vlax-ename->vla-object en) "abc")
YESSS!..
Thank you, pbejse!
I only thought It can be done within "old good" AutoLISP.
Now I understand that it could be done only with ActiveX methods (because MLeader is a "VERY NEW ENTITY")...