Tool Pallette Command Macro - Text string limit

Tool Pallette Command Macro - Text string limit

Anonymous
Not applicable
429 Views
2 Replies
Message 1 of 3

Tool Pallette Command Macro - Text string limit

Anonymous
Not applicable

Does any know if there is a limit to the number of characters in a text string for a mleader that is allowed in a macro? I am sing this macro in a tool pallette? My macro is as followed:

 

^C^C_mleader \\"NEW ELECTRIC UNDER STEAM LINE. SHORING & TRENCHING WILL BE REQUIRED. CONTRACTOR SHALL ADD SUPPORTS IN INCREMENTS UNDER STEAM LINE TO COMPLETE CROSSING";

 

 

But all I get is:

 

"NEW ELECTRIC UNDER STEAM LINE. SHORING & TRENCHING WILL BE REQUIRED. CONTRACTOR SHALL ADD SUPPORTS IN INCREMENTS UNDER STEAM LINE TO"

 

Everything I read about this is 256 chararecters and my string in less than that.

 

 

 

Paul

0 Likes
430 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

Hi, I think it's a problem of MLEADER, not a macro. Limit is 256, but for diesel expresion like with $.. Not for text like that.

 

When we tried to put longer text into MLEADER using lisp, we did it backwards - see here We made a mleader definiton without text first and then we modified existing mleader definition - we added a longer text.

 

Try this macro (hope you don't have LT):

 

^C^C_mleader \\;(vl-load-com)(vla-put-textstring (vlax-ename->vla-object (entlast)) "NEW ELECTRIC UNDER STEAM LINE. SHORING & TRENCHING WILL BE REQUIRED. CONTRACTOR SHALL ADD SUPPORTS IN INCREMENTS UNDER STEAM LINE TO COMPLETE CROSSING")

Message 3 of 3

Anonymous
Not applicable
Thank you so much!! Worked like a charm!
0 Likes