Community
Civil 3D Forum
Welcome to Autodesk’s Civil 3D Forums. Share your knowledge, ask questions, and explore popular AutoCAD Civil 3D topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Combine Mtext Paragraphs into one Mtext

15 REPLIES 15
SOLVED
Reply
Message 1 of 16
Neilw_05
4214 Views, 15 Replies

Combine Mtext Paragraphs into one Mtext

I have numerous MText paragraphs that I need to combine into a single piece of MText. I want the paragraphs preserved in the final piece. I've found some routines that can combine pieces of MText but I don't know if they preserve the paragraphs.

 

I have DotSoft Toolpac but it doesn't seem up to the task. Can anyone direct me to a tool or code for this?

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
15 REPLIES 15
Message 2 of 16
AllenJessup
in reply to: Neilw_05

Neil,

 

The first piece of code HERE worked for me on one triel. Hope it works for you.

 

Allen Jessup



Allen Jessup
Engineering Specialist / CAD Manager

Message 3 of 16
rkmcswain
in reply to: Neilw_05

ToolPac Mtext Join (command: MTXJOILIN) won't do what you want?

 

Maybe this will work better?

http://cadtips.cadalyst.com/multiline-text/improved-text-mtext

 

 

R.K. McSwain     | CADpanacea | on twitter
Message 4 of 16
Neilw_05
in reply to: rkmcswain

Randy,

 

The TOOLPAC tools I have don't work with MTEXT, only DText. The command you mentioned is not recognized in my TOOLPAC.

 

I tried downloading and running Join Mtext.LSP but it doesn't seem to function properly in ACAD 2004. When I use it to combine 2 pieces of MTEXT it loses all but a few lines of text.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 5 of 16
Neilw_05
in reply to: AllenJessup

I'm having the same problem with the code in that post Allen. When I join 2 pieces of MText it loses all but a few lines of text.

 

I wonder if there is something in the code that is not compatible with ACAD 2004.

 

P.S. I tried running it in 2013 with the same results. Something is wrong with the code.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 6 of 16
Neilw_05
in reply to: AllenJessup

I tried the 1MT0, 1MT1,1MT2 code in the post you referenced Allen. It does the job so, Kudos to you for that one.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 7 of 16
AllenJessup
in reply to: Neilw_05


@Neilw wrote:

I'm having the same problem with the code in that post Allen. When I join 2 pieces of MText it loses all but a few lines of text.

 

I wonder if there is something in the code that is not compatible with ACAD 2004.

 

P.S. I tried running it in 2013 with the same results. Something is wrong with the code.


Neil,

 

I only tried the code once in 2012. It worked as expected there. I'm glad others worked for you.

 

Allen



Allen Jessup
Engineering Specialist / CAD Manager

Message 8 of 16
rkmcswain
in reply to: Neilw_05


@Neilw wrote:

 

The TOOLPAC tools I have don't work with MTEXT, only DText. The command you mentioned is not recognized in my TOOLPAC.


Running ToolPac 14 here. It must be a new tool.

R.K. McSwain     | CADpanacea | on twitter
Message 9 of 16
gccdaemon
in reply to: Neilw_05

Copy....Paste....lol. It's got to do with Paragraph formatting. You could write a Lisp pulling code from STRIPMTEXT and TXT2MTXT and come up with something workable. I try to format my mtext paragraphs using tab dilenation. Here is what I do:

 

1. find/replace the tabs with [tab]

2. set my mtext width to 0

3. explode

4. Add \P to the front of the text lines

5. use TXT2MTXT to rejoin the text.

6. find/replace [tab] with actual tabs.

7. set paragraph setting globally

Andrew Ingram
Civil 3D x64 2019
Win 10 x64 Pro
Intel Xeon E5-1620
32 GB Ram
Message 10 of 16
Neilw_05
in reply to: gccdaemon

Actually there is some code in the link Allen posted that does a great job. Look at the code for OneMtext.LSP in the thread.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 11 of 16
troma
in reply to: Neilw_05

I don't see any code entitled "OneMtext.LSP" on that thread. Are you allowed to copy/paste it to here, so we know which one of those codes worked for you?

Mark Green

Working on Civil 3D in Canada

Message 12 of 16
Neilw_05
in reply to: troma

I guess it was a bit vague in the thread. Here is the .LSP I created from the code.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 13 of 16
Neilw_05
in reply to: rkmcswain

I found the tool in my Toolpac. It was under the MTEXT menu. The command is DSTP_MTJOIN.

 

I wish I had found it sooner but it's good to have the LISP tool too.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com
Message 14 of 16
rkmcswain
in reply to: Neilw_05


@Neilw wrote:

I found the tool in my Toolpac. It was under the MTEXT menu. The command is DSTP_MTJOIN.

 


Terry must have renamed it.  It's named MtxJoiLin in TP 14

R.K. McSwain     | CADpanacea | on twitter
Message 15 of 16
bart_tqd
in reply to: Neilw_05

Simple, explode the mtext to text and then use txt2mtxt to regroup into one mtext paragraph!

Message 16 of 16
Neilw_05
in reply to: bart_tqd

There were about 50 pieces of MTEXT, each being a paragraph in a set of plan notes. If you explode them all and combine using TXT2MTEXT you end up with all the paragraphs consolidated into a single paragraph. That is not a solution.

Neil Wilson (a.k.a. neilw)
AEC Collection/C3D 2024, LDT 2004, Power Civil v8i SS1
WIN 10 64 PRO

http://www.sec-landmgt.com

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Rail Community


Autodesk Design & Make Report