Wrap the text outputting from TaskDialog.Show

Wrap the text outputting from TaskDialog.Show

Anonymous
Not applicable
1,009 Views
1 Reply
Message 1 of 2

Wrap the text outputting from TaskDialog.Show

Anonymous
Not applicable

Hi,

I was wondering how to make the text in the taskdialog all visible because sometimes revit is removing some parts of the text while i want it to wrap all of the text in order to see it. The problem is shown in the picture.wrap text.jpg

1,010 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Simply break the string into pieces using a carriage return + newline separator "\r\n".

 

You can also display the text in a much smaller font by using the MainContent property:

 

https://www.revitapidocs.com/2020/0c2eb583-de3d-58f5-31ea-7ff71eae51a5.htm

  



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder