cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Text height in Tables

msteffke
12-Amethyst

Text height in Tables


A few months back I created program that inserts tables and fills them with text. I have to insert the tables as opposed to creating them, because I need to control line display over variable conditions. Anyway, the users now want to make the drawings 1 to 1 scale as opposed to scaled - drawing size is variable, 804 X 516. I have had to scale up (resize) the existing tables I'm inserting by 24.39, and also scaled up the text size. However, when I write to this table, the text will always come in at the default size of 0.625. I have set the file drawing properties but that doesn't matter. If I enter text into the tables manually, the text size comes in big, its only when I add text using toolkit where it comes in very small. I'm adding text using:
ProDwgtableTextEnter(table, col, row, lines);
Any ideas? I'm out of them!

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
1 REPLY 1

Hi Mark,

I've done this by creating the text using ProDwgtableTextEnter like you
did where it comes out with the default height but then using the Note
functions to modify the text style to get it to what you want.

For example after you fill the cell use:

ProDwgtableCellNoteGet
ProDtlnoteDataGet
ProDtlnotedataLinesCollect
ProDtlnotelineTextsCollect

Then (eventually) you'll be down to the notetext and you can use

ProDtlnotetextFontSet
ProDtlnotetextHeightSet
ProDtlnotetextWidthSet
Or any of the other style properties.

Then just fire them back in and you'll have the stuff set the way you
want using:

ProDtlnotelineTextsSet
ProDtlnoteldataLinesSet
ProDtlnoteModify

I can give you sample code if you want but you probably get the idea.
It would be nice if you could just set it when you enter it into the
cell. It has always seemed like way too much work to just change the
height.

Bryan
Announcements
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration