Convert MText to an MLeader Routine that Works in 2019

Convert MText to an MLeader Routine that Works in 2019

murray-clack
Advisor Advisor
1,995 Views
4 Replies
Message 1 of 5

Convert MText to an MLeader Routine that Works in 2019

murray-clack
Advisor
Advisor

Hi there,  over the years i have found numerous routines that convert MText into an MLeader object (or convert a leader object and an MText object into a MLeader, etc) but NONE of them seem to work for AutoCAD 2019 (the routine simply conks out).

Does anyone have an updated routine that works for 2019, or have an explanation of why some of my existing routines won't work?

Attached is one of the routine I like using the most, but it simply won't work in 2019

0 Likes
1,996 Views
4 Replies
Replies (4)
Message 2 of 5

ronjonp
Advisor
Advisor

Maybe THIS ?

0 Likes
Message 3 of 5

murray-clack
Advisor
Advisor

Sorry... that one doesn't work either

The error I get is:  "Cannot invoke (command) from *error* without prior call to (*push-error-using-command*). Converting (command) calls to (command-s) is recommended."

0 Likes
Message 4 of 5

ronjonp
Advisor
Advisor

in the code do a search for command and replace it with command-s 🙂 .. that goes for my code and the code you posted.

0 Likes
Message 5 of 5

rkmcswain
Mentor
Mentor

Your attached routine works fine all the way up to AutoCAD 2022.

R.K. McSwain     | CADpanacea | on twitter
0 Likes