IV2009 - Custom table formating doesn't work.

IV2009 - Custom table formating doesn't work.

Anonymous
Not applicable
306 Views
2 Replies
Message 1 of 3

IV2009 - Custom table formating doesn't work.

Anonymous
Not applicable
I have a C# program that among other things adds a custom table to an idw. I created a text style an apply that to the custom table. Everthing works except the text fields will not justify - nothing happens when the following code executes:

ct.DataTextStyle.HorizontalJustification = Inventor.HorizontalTextAlignmentEnum.kAlignTextCenter;

where ct is the table object.

Is this a bug or is this wrong????

Thanks.
0 Likes
307 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable


Have you tried using the CustomTable.OverrideFormat method? I'm guessing that the table style may be overriding the text style?

0 Likes
Message 3 of 3

Anonymous
Not applicable
Yes, the code originially was ct.OverrideFormat = tf where tf is of type Inventor.TableFormat. This format included font size, color, justification etc. It worked in the previous version of Inventor. It does not do anything now. This is why I tried the following:

ct.ColumnHeaderTextStyle = DrawingDoc.StylesManager.TextStyles[TEXT_STYLE];
ct.DataTextStyle = DrawingDoc.StylesManager.TextStyles[TEXT_STYLE];
ct.TitleTextStyle = DrawingDoc.StylesManager.TextStyles[TEXT_STYLE];

This reformats everything except for the justification - the text will not center.

Thanks for the reply.
0 Likes