Quantcast
Channel: PTC Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 11539

Word Wrap Parameter Driven Text in Table Cells

$
0
0

What I would like to do is be able to word-wrap the text in a table cell (specifically, the description for our title blocks).

 

Currently, we use the Common Name field of our drawing to drive our description, which usually works well as we keep it restrcited to 60 characters and this prevents the "runaway description".  That said, once you extend past 30-40 characters, the text in our title block becomes almost unreadable if you shrink it down to fit the full description in one line.

 

What I am trying to avoid is having to write up a program that (1) reads in the description paramter, (2) counts the characters, (3) finds character 32, (4) rolls back to the previous space, (5) truncates the first part to a new description1 parameter, then (6) fills the remainder into a description2 paramter, and finally (7) calls description1 for the first line of the description cell and calls description2 for line 2 of the cell.  I could probably do this, but I would rather not if there is an easier way.


Viewing all articles
Browse latest Browse all 11539

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>