CADDork Posted August 17, 2012 Posted August 17, 2012 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. Quote
CyberAngel Posted August 17, 2012 Posted August 17, 2012 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? Quote
eldon Posted August 17, 2012 Posted August 17, 2012 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? Quote
CADDork Posted August 17, 2012 Author Posted August 17, 2012 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. Quote
Dadgad Posted August 17, 2012 Posted August 17, 2012 http://www.lee-mac.com/text2mtext.html Thanks Lee! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.