Zero Width Space in Shared Parameters

Zero Width Space in Shared Parameters

David_Robison
Advocate Advocate
775 Views
3 Replies
Message 1 of 4

Zero Width Space in Shared Parameters

David_Robison
Advocate
Advocate

Is it possible to use the unicode zero width space character (U+200B) in shared parameters?

 

I have a long string (1/2"C,3#12,#12N,#12G) that I would like to have wrap at the commas if possible. I can insert spaces and everything wraps fine, but that makes the string longer.

 

I am able to insert the space in the string and have it be saved in Revit. Reading back the parameter, the string length includes the zero width string. However, the label doesn't wrap at that point.

0 Likes
776 Views
3 Replies
Replies (3)
Message 2 of 4

matthew_taylor
Advisor
Advisor

Hi @David_Robison,

I have no experience of them, but have you thought of using a MultiLineText ParameterType?

 


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
Message 3 of 4

David_Robison
Advocate
Advocate

Interesting, I didn't know that parameter type existed. I ran a test and unfortunately it has the same behavior as regular text. I want the possibility of a line break without it being a requirement.

0 Likes
Message 4 of 4

matthew_taylor
Advisor
Advisor

This article came to mind:

http://revitoped.blogspot.co.uk/2013/08/two-lines-in-schedules.html

I think it's possible with other things too. It's not the same thing you're after, obviously, but it may provoke a thought.


Cheers,

-Matt
_______________________________________________________________________________
Marking a post as a 'solution' helps the community. Giving a post 'Kudos' is as good as saying thanks. Why not do both?
0 Likes