Jump to content

Recommended Posts

Posted

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.

Posted

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?

Posted

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?

TreeSchedule.jpg

Posted

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...