Hi @mobj,
Glad you got it sorted.
Hi Jeremy,
Thanks for the info.
It doesn't help me understand why vertical alignment isn't included in either the UI or the API.
If Revit could do everything as a user would want it, text wouldn't exist. It would all be internal/external databases, tags, references etc. That is not the case.
So, a user (or programmer) must be able to add text that can be positioned in a manner that editing the text element's content doesn't make it wrap in an undesirable way.
There are 21 ideas in the Idea Station using the search 'text alignment'.
While the 'no vertical alignment' stance may make sense from an Autodesk point of view, it makes zero sense from a user viewpoint. Any user would have told the development team that. The 21 ideas voice this also.
I've been using the Revit API since Revit 2011.
Originally, I was like, I'll use TextNoteCreationData to batch create text, because that'll be faster than creating them individually (after some testing).
That got deprecated in Revit 2013 and obsoleted in Revit 2014.
In Revit 2013, the NewTextNote creation method was heralded as being as efficient as the batch method.
Then that was deprecated in Revit 2016, and obsoleted in Revit 2017.
In Revit 2016, enter the 'new' static Create method. A devolved version, in preparation for the Revit 2017 text element overhaul. Adjustment required after initial creation transaction.
The roadmap isn't clear.
It's not annoying, really, just disappointing, time sapping, and ambiguous. The 2017 'improvements' weren't enough!
Sorry, this message is longer than I wanted! And sorry it's another rant...
Cheers,
-Matt
[Edit] Oh, and I deal with the text placement in the two ways I suggested to @mobj. [/Edit]
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?