In this video, author Shaun Bryant shows the user how to convert single-line text to multiline text (MTEXT) using the Convert To MTEXT command.
- [Instructor] Welcome to another AutoCAD tip and trick. We're going to be looking at the ConvertToMTEXT command, and how we can convert single-line text into multi-line text, quickly and easily. Now, we've got a new drawing, there. It's Convert to MTEXT.dwg. As usual, you can download that from the website to follow along with this particular tip and trick video. Now, what we're going to look at is this drawing, with just some lines of single-line text.
Imagine you've got it from a third party, let's say, a contractor, an architect, an engineer, and what they've done is they've used loads of single-line text, instead of multi-line text, which you prefer to use, or it's in the project standards, or whatever. Now, we can convert to multi-line text really quickly and easily. You go to the Express Tools tab on the AutoCAD ribbon, enter the text panel, and there's Convert to Mtext. Now, if I hover over that, you can see the keyboard command is TXT2MTXT.
There's too many TXTs in there for me. I'd prefer to click on the icon, on the text panel, there. So, I'm going to click on Convert to Mtext, and come into the drawing area, and it prompts me to select the single-line text objects I want to convert to Mtext. Before I do that, though, if I right click, you'll notice on the command line, in the brackets there, it says Settings. If I right click, that comes up on the shortcut menu. Select Settings on the shortcut menu. Now, you've got a few settings here that you can tweak and change, if you need to. So, we're going to combine into a single Mtext object, with our text ordering top-down.
We can also select the order of the text if we want to. We can also word-wrap the text if we need to, if it's big, long lines of single-line text. Notice uniform line spacing is grayed out at the moment, but it is ticked, so what will happen is if I select some multiple single-line text entities, they will uniform line space anyway. I'm going to click on OK, and I'm going to select one and two, and three bits of single-line text. Watch what happens when I press Enter.
Can you see their positions alter slightly? That's that uniform line spacing, and the sorting, in order, kicking in, in the Convert to Mtext command. If I hover over that, now, you can see there's Mtext. If I double click on it, I go into the text editor on the ribbon, and I can edit my text, but the lovely thing is, is it brings in things like the degrees character code. I can also justify my own text now, because it's a group of bits of text, forming the multi-line text, so I could potentially change the justification of this text by highlighting it, as you would normally.
Let's change that to, say, Middle Center, and can you see it all centers nicely down the middle? Once I'm done, I can click away from the text or go to Close Text Editor on the ribbon, and that's all been changed to a bit of multi-line text, instead of three lines of single-line text. Now, you'll notice the next four lines of single-line text are all one dot space auto-number, two dot space auto-number. Now, here's the lovely thing about Convert to MTEXT. Let's convert those four lines all at once, so I'm going to go Convert to Mtext, and I'm going to select one, and two, and three, and four, like that.
Now, I can still right click and go to Settings, if I want to. You'll notice Combine into single mtext object is still ticked. I'm sorting top-down, and I am word-wrapping the text, as well. I've left all the settings as they are, I click on OK, and then I just press Enter to confirm my selection, and can you notice was happened there? They numbered, but they also word-wrapped. So if I now double-click on that text, I can edit it, but can you see the word-wrap has kind of pushed everything out, to the right? So, what I need to do is click away from that text.
I'm going to undo one step, and go back, so that they are back to single-line text, like so. I'm going to switch the word-wrap off, this time. So, Convert to Mtext, and I'm going to go one, two, three, four, right click, Settings, switch off Word-wrap text. Notice now, it forces the uniform line spacing to be available, because I'm not word-wrapping this time, because I need the spacings. So, I click on OK, and when I press Enter this time, you'll notice that they don't all jump down to that next line, because they were trying to word-wrap with the auto-numbering.
Now, that is multi-line text. If I double click on it, notice in the Text Editor, now, that that numbering is actually part of the multi-line text. So, you'll notice now, what I could do, is if I select all of this, can you see? It's not selecting the numbers, because my Bullets and Numbering, here, is actually on and Numbered. If I change that to Bulleted, if I hover over Lettered, can you see I can change it in whichever way I want? I can have lowercase, uppercase. Let's go for lowercase, like that. A, B, C, D.
Click away from the text, and again, that is now multi-line text, as well. How quick and cool is that, when you need to quickly convert big groups of single-line text to multi-line text in, perhaps, a drawing that's been supplied to you by a third party? It's a really, really nice command. Use it, it's a really cool command in AutoCAD. Makes you that little bit more productive. Just gets things done that little bit quicker.
Skill Level Intermediate
Q: Why can't I earn a Certificate of Completion for this course?
A: We publish a new tutorial or tutorials for this course on a regular basis. We are unable to offer a Certificate of Completion because it is an ever-evolving course that is not designed to be completed. Check back often for new movies.