I am trying to do a find and replace thru the API. Can anyone point me in the right direction. My biggest issue is keeping the formatting. Part of the text notes are underlined and others are not. I can do a find and replace but cannot seem to keep the formatting. Thanks for your help.
Via API, the format of the TextNote string cannot be retrieved. So I don't think you can format the TextNote instance via API at the moment.
What makes me think it is possible is the fact that there is a find and replace within Revit that works the way I want it to. I have a feeling I am going to have to pass it into some kind of form with a richtext box first though.
We can manually copy the text with format from the TextNote object after double click it, and paste it in Winword, then strin format can be duplicate.
However TextNote.Text just return a plain text, without the format information in the returned string. So we cannot replace the string with format.
There is a change request for get/set the string fromat via API.