Not sure what's going on here. The \P character gives you a return in text, not mtext. To put a return in mtext, press the return key. Have you tried ^P instead of \P in mtext?
Registered forum members do not see this ad.
AutoCAD 2010
I have researched inserting a hard return into mtext and can’t seem to get it to work.
I have the MTEXTED set to internal if that matters.
My google searches have indicated that using \\P, \P (capital P) or \n will result in a hard carriage return but I cannot get it to work in either fashion.
We have well over 200 separate standard text entities that need to be consolidated into a single mtext, with a hard return after each line. It is a tree list for a large site.
I have appended a “?” to the end of each individual line (using a LISP I found), in the hopes that I can combine them all into an mtext, and find/replace the “?” with a hard return and my googling has indicated that it is as easy as using \\P, but I am having no luck with any codes I have found in my searches.
This issue will come up again and I want to find a solution.
Any help would be appreciated.
Not sure what's going on here. The \P character gives you a return in text, not mtext. To put a return in mtext, press the return key. Have you tried ^P instead of \P in mtext?
breaking AutoCAD on a regular basis since 1991




It is a pity that all the tree names were not in ordinary text, because the ExpressTools function Text2Mtext does exactly what you want as long as you uncheck the option to create word-wrap Mtext.
Perhaps you could explode all the Mtext to make use of it?
Thank you so much!
That did the trick. I never knew that Mtext had "Options". I just usually type the command and select the text. You have made my coworker very happy, and I learned something new today, even though I try very hard not to
While it did work, I would still like to solve my original issue, as I have needed to do that in the past and never found a solution.
Thanks again and I hope the rest of my friday goes as smooth.




Volume and repetition do not validate opinions forged in the absence of thought.
Bookmarks