Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Any good ways to accomplish this (title) programatically that I am missing? I am looking to change the width of columns to fit all text in each row to a single line for readability when it is printed on a sheet. My current framework for doing this feels messy, which is very similar to what is provided Here by Fair59's answer:
1. Using TableCellStyle, set to a known font name that I want to use.
2. Loop for current index, row and column.
3. Scale Column Width via ViewSchedule.Definition.GridColumnWidth by a scale factor found using font size.
I can't help but feel that this method couldn't be solved by some method I am ignorant of much more efficiently and safely. Any tips? Thanks in advance.
I'd say Revit was a chisel if it wasn't used as a hammer.
Solved! Go to Solution.