Skip to main content
Solved

How to split a delimited string with a carriage return to create a stacked list.

  • July 25, 2017
  • 5 replies
  • 386 views

Forum|alt.badge.img+1

How to split a delimited string with a carriage return to create a stacked list.

Example:

Input = A:1-100+B:1-300+C:1-600

Output = A:1-100

B:1-300

C:1-600

The output will be stored in a multiline attribute in AutoCAD 2017.

Best answer by takashi

Hi @blehm, you can use the StringReplacer to replace '+' with a carriage return.

  • Mode: Replace Text
  • Text To Replace: +
  • Replacement Text: <enter a carriage return using the Text Editor>
This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

5 replies

fmelizard
Safer
Forum|alt.badge.img+21
  • Safer
  • July 25, 2017

Hi @blehm Use a StringReplacer. For the Replacement Text, open the Text Editor and insert a Carriage return from the list of Special Characters.


takashi
Celebrity
  • Best Answer
  • July 25, 2017

Hi @blehm, you can use the StringReplacer to replace '+' with a carriage return.

  • Mode: Replace Text
  • Text To Replace: +
  • Replacement Text: <enter a carriage return using the Text Editor>

Forum|alt.badge.img+1
  • Author
  • July 26, 2017

I can replace the delimiter but I'm still not getting the carriage return. see attached


Forum|alt.badge.img+1
  • Author
  • July 26, 2017

I figured out what I was doing wrong, I moved the stringreplacer to the output side of my dwgstyler and it works like a charm!


  • September 12, 2022

THANK YOU for this!!! :-)