Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

ebsoares
7454 Vistas, 3 Respuestas

Find/Replace MText Carriage Return

Hi, everyone.

 

There're a ton of MText elements where I would like to replace a specific set of characters, say "__" (double underscores) with a carriage return.

 

Forums around the web say to replace it with "\P" (case sensitive), but this does not work. When I replace them with "\P", the Mtext actually shows the "\P" in there, instead of inserting a carriage return.

 

And, if you select the Mtext and look at "Contents" property it shows "\\P" (double backslashes).

 

For example:

  • Initial Mtext: "TOP LINE__BOTTOM LINE"
  • Find/Replace "__" with "\P"
  • Mtext result: "TOP LINE\PBOTTOM LINE"
    • "Contents" property: "TOP LINE\\PBOTTOM LINE"

Does anyone know how to accomplish this?

 

Thanks in advance,

 

Edgar