String to Multiline Text parameter

I would like to write a string to a Multiline Text parameter in Revit. With simple Element.SetParameterByName i am able to write something. But only the first line… :expressionless:

What I want is to report the worksets name to a Project Info parameter which is a multiline text.

What am I missing? Help Community!?

1 Like

Alright… I got it…
I missed a String.Join and a \n - voila…

Hope my post at least can help somebody else…

5 Likes

This works OK (make sure there is a space before the " \n"), but when I try and edit the values via Edit Type the data is one continuous string. I tried " \r" and that doesn’t work at all. Any ideas or is this a ‘feature’ of Revit.

3 Likes

Thank you, it helped me!! :slight_smile: