are there any command to split a multi text?

are there any command to split a multi text?

Anonymous
Not applicable
7,726 Views
5 Replies
Message 1 of 6

are there any command to split a multi text?

Anonymous
Not applicable

just curious

0 Likes
7,727 Views
5 Replies
Replies (5)
Message 2 of 6

pkolarik
Advisor
Advisor

You can just explode it. That will turn each line into a line of dtext

0 Likes
Message 3 of 6

Kent1Cooper
Consultant
Consultant

If what you want is each line  in the MTEXT to be its own piece of TEXT [there's no such entity type as DTEXT, by the way], then yes, EXPLODE is all you need.  If you want something else, such as each word  in it to be separate, there are routines around that can subdivide text strings around any delimiting character you want [such as a space] -- do some Searching.

Kent Cooper, AIA
0 Likes
Message 4 of 6

Paul_Gander
Advocate
Advocate

If the split positions are too random to be automated you can manually divide mtext into 2 parts fairly simply using cut and paste:

 

Open the text editor and select the text you want to separate from the original. Use cut (ctrl-X) to remove it and close the editor. Pasting (ctrl-V) the cut text back into the drawing will create a new mtext object.

0 Likes
Message 5 of 6

pkolarik
Advisor
Advisor

@Kent1Cooper wrote:

If what you want is each line  in the MTEXT to be its own piece of TEXT [there's no such entity type as DTEXT, by the way],


 

And yet "dtext" is a command used to create it, and anyone familiar with the differences will immediately recognize that "dtext" is single-line text, whereas just saying "text" may not make that readily apparent.

0 Likes
Message 6 of 6

Kent1Cooper
Consultant
Consultant

@pkolarik wrote:

@Kent1Cooper wrote:

.... [there's no such entity type as DTEXT, by the way],

And yet "dtext" is a command used to create it, and anyone familiar with the differences will immediately recognize that "dtext" is single-line text, whereas just saying "text" may not make that readily apparent.


 

True, but there are loads  of drawing command names for which what they make is not called the same thing as the command name -- RECTANG, DONUT, REVCLOUD, POLYGON, CYLINDER, CONE, SPHERE, BOX, DIMLINEAR, etc.  If someone tries to have something like (ssget) look for "DTEXT" objects, they will come up as empty-handed as if they tried searching for "DONUT" objects.

 

Just for people's edification, if you're interested....  The DTEXT command is a holdover from long ago when there was a distinction between the TEXT command and the DTEXT command.  The D stands for Dynamic, and with Dynamic text you could see what you were getting in place as you typed it in, whereas with the [old] TEXT command you couldn't -- the result showed up only when you finished.  A very long time ago [25 years or more?] they decided there really wasn't any point in the way the old TEXT command worked, and they made TEXT operate as DTEXT did, i.e. dynamically without  needing to include the D on the front of the command name.  The DTEXT command name is probably only still around for legacy purposes, such as to not break people's AutoLisp routines or Scripts or command macros that may have included it.  There's nothing Dynamic about a piece of Text once it's drawn -- it was only in the process of drawing it  that there was any difference between the old TEXT command and the DTEXT command, and that difference no longer exists.  Both make TEXT objects, and have for decades now.  You can still use  DTEXT as a command in AutoCAD 2019, but Help, at least as far back as 2016 and likely further, does not even list it  among the command names.

 

If there's likely to be any confusion about which type of text I am talking about, I will typically distinguish Mtext from "plain" Text.

Kent Cooper, AIA
0 Likes