Table Formatting - Vertical Justification

Table Formatting - Vertical Justification

alasdair_crawford
Contributor Contributor
534 Views
3 Replies
Message 1 of 4

Table Formatting - Vertical Justification

alasdair_crawford
Contributor
Contributor

Is it possible to set the vertical justification of text within a table? I can set the horizontal justification with the following:

oCustomTable.Columns.Item(2).ValueHorizontalJustification = kAlignTextLeft

 But I can't find any way to make the text stay at the top of the cell.

 

Reason for needing this is I have a table of notes, with the note number in the first column and the note itself in the second. The table gridlines are white so they don't show. If the note is a single line, the number aligns with the start of the note, but if it goes to multiple lines, the number stays centred in its cell and ends up aligned with the middle of the note rather than the start. See note 2 in the screenshot below.

alasdair_crawford_0-1698236707057.png

Thanks

Alasdair

0 Likes
535 Views
3 Replies
Replies (3)
Message 2 of 4

A.Acheson
Mentor
Mentor

Hi @alasdair_crawford 

 

I am not seeing any exposure of a vertical justification in the API help here under custom table which is what you would be needing. Can you do the required changed to the cell manually? If so maybe the cell text modification could be accessed. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
0 Likes
Message 3 of 4

alasdair_crawford
Contributor
Contributor

Hi Alan,

 

Sadly don't seem to be able to do it manually. Just seem to have options for horizontal alignment. Thanks, Alasdair

alasdair_crawford_0-1698245514623.png

 

0 Likes
Message 4 of 4

WCrihfield
Mentor
Mentor

Hi guys.  I did not like the lack of vertical justification of cell contents either.  One thing you might be able to do is make the values of your first column contain the same number of characters as the second column, but use spaces for the extra characters after the initial numerical value.  That should force the number to appear near the top of the cell, while the extra empty spaces occupy the area of the cell below that.  It's not going to be exact though, depending on the text styles being used for the data in your table, because a space character will take up more or less physical space than other real characters.  Just an idea for a workaround until they get this additional feature implemented.

You could also search in the Inventor Ideas forum to see if anyone else has posted about it yet.  If so, you could vote for it, to help it along towards getting implemented in a future version.  If not found, you could create a new idea for it.  If you create a new idea post for it, make it as clear as possible, keep it relatively short, and include example images.  More incentive for folks to invest their time to check it out, without perceiving that it might take a long time to look into.

P.S.:  If you create an idea post, or find one (or more), post them back here, to make it easier for folks to find and vote for.

Edit 2:  Here are two related Inventor Ideas links you can vote for.  Unfortunately, they do not have much support yet.

https://forums.autodesk.com/t5/inventor-ideas/table-text-justification/idi-p/3922138 

https://forums.autodesk.com/t5/inventor-ideas/centering-text-vertically-middle-justification-in-a-pa... 

Wesley Crihfield

EESignature

(Not an Autodesk Employee)

0 Likes