Skip to main content
Solved

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


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>
View original
Did this help you find an answer to your question?

fmelizard
Contributor
Forum|alt.badge.img+16
  • Contributor
  • 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
Contributor
Forum|alt.badge.img+17
  • Contributor
  • 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

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


Forum|alt.badge.img+1

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!!! :-)


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings