Solved

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

  • 26 July 2017
  • 5 replies
  • 60 views

Badge +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.

icon

Best answer by takashi 26 July 2017, 01:21

View original

5 replies

Userlevel 4
Badge +13

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

Userlevel 3
Badge +17

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>
Badge +1

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

Badge +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!

THANK YOU for this!!! :-)

Reply