Combine mtext blocks to single paragraph

Combine mtext blocks to single paragraph

Anonymous
Not applicable
4,401 Views
3 Replies
Message 1 of 4

Combine mtext blocks to single paragraph

Anonymous
Not applicable

I know all about txt2mtxt buuuut, 

Is there a way to combine multiple mtext blocks with their separate bullets into a single editable text block?

 

Imagine that each part of this text is separate.. How do I easily combine to one block? I seem to remember there being a command for this (I know there are plenty of LISPs as well but I want the AutoCAD command). 

 

Thaaaaanks!

I'm using AutoCAD 2015 and I've seen someone else use the command. I just cant find it!

 

example:

 

1.    This is the mtext block

       that I'm trying to combine with 

       the numbered bullet and the 

       following paragraph. 

 

2.    This is the second (separate) block

       of text. So now, how do I get all 

       four of these elements merged 

       nicely into one single tabbed-paragraph

       mtext block. 

 

0 Likes
4,402 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend
Nothing built in yet unless you are running AutoAD2017 and have installed the 2017.1.1Fall Update.

There are free Lisps out there to do that, try a quick Google Search. You can also search the LISP forum https://forums.autodesk.com/t5/autocad-customization/ct-p/AutoCADTopic1
0 Likes
Message 3 of 4

Kent1Cooper
Consultant
Consultant

Welcome to these Forums!

 

One thing you can do is to use OneMtext.lsp, available here.  For the following images, I used its 1MT1 command [the 1 at the end means it puts one hard return between selected Text/Mtext objects], and in the bottom left area of your drawing, selected the 1., then its following Mtext chunk, then the 2., then its chunk, etc. [the selection order matters]  The result then looked like this:

 

Mtext1.PNG

 

I then double-clicked on that to get into the Mtext editor, pressed Ctrl+A to select all the content, and slid the indent/tab marker over a little:

 

Mtext2.PNG

 

Then I positioned the cursor after the 1. and hit Delete and Tab, and again at the 2.  This is what it looks like after having done those two but not yet at the 3.:

 

Mtext3.PNG

 

You can add Enters to space the elements apart if you want blank lines between.  Or if you use the 1MT2 command, it will add a blank line between each selected object's contents, initially like this:

 

Mtext4.PNG

 

which will give you the space below 1.'s chunk and above the 2., but you'll have to hit one more Delete before the Tab in the description above, to get this result:

 

Mtext5.PNG

 

It's up to you whether you prefer to use 1MT1 "plain" and leave the chunks without blank lines between, use 1MT1 and add Enters to make those blank lines, or use 1MT2 and take out every other extra Enter.

 

This approach will not help you with the big General Notes column toward the middle, in which a bunch of text chunks are already in one collective Mtext object spanning several numbers, but the numbers to the left are individual.  For that, you should be able to just eliminate those separate numbers, and impose Bullet-numbering in the Mtext editor.  You can combine the four big chunks in that column into one with 1MT2.

Kent Cooper, AIA
Message 4 of 4

dbroad
Mentor
Mentor

In addition to the other solutions, I can think of two that do not involve extra lisp commands:

1) Explode, move numbers up, use txt2mtxt, edit and hit tab to activate numbers.

2) Erase the numbers, edit the followup paragraph(s). CTRL-A and CTRL+C.  Edit the first paragraph. CTRL+V. Turn on numbering.

Each only takes about half a minute.

 

Architect, Registered NC, VA, SC, & GA.