Resize individual cell in table

Resize individual cell in table

shoffmanHLUYT
Participant Participant
1,431 Views
6 Replies
Message 1 of 7

Resize individual cell in table

shoffmanHLUYT
Participant
Participant

AutoCAD 19 -- Is it possible to resize individual cells in a table, rather than an entire row?

0 Likes
1,432 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend
A cell in a table can be resized only according to the size of column or row it is in: this applies to AutoCAD and Excel and pretty much every other cell in a table.

Are you trying to do something else perhaps and just explained it incorrectly?

0 Likes
Message 3 of 7

shoffmanHLUYT
Participant
Participant

Assume a table with 100 cells in 10 rows. All the rows have the same height. Is it possible to select any cell and drag or otherwise move a top or bottom border to make the cell a different height? Of course, this would change the height of the cell immediately above or below, depending on which border is moved. AutoCAD's way of doing this (merging/unmerging cells) is clunky and time consuming. 

0 Likes
Message 4 of 7

Sea-Haven
Mentor
Mentor

 

You can use this vla-GetRowHeight and vla-setRowHeight to change a row height using VL lisp, I know www.Lee-mac.com has  select cell code need that to make it work. Will try to find.

0 Likes
Message 5 of 7

ronjonp
Advisor
Advisor

@shoffmanHLUYT wrote:

AutoCAD 19 -- Is it possible to resize individual cells in a table, rather than an entire row?


If I'm understanding your question, the answer is no for vertical and yes for horizontal.

0 Likes
Message 6 of 7

CodeDing
Advisor
Advisor

@shoffmanHLUYT ,

 


@shoffmanHLUYT wrote:

Assume a table with 100 cells in 10 rows. All the rows have the same height. Is it possible to select any cell and drag or otherwise move a top or bottom border to make the cell a different height? Of course, this would change the height of the cell immediately above or below, depending on which border is moved. AutoCAD's way of doing this (merging/unmerging cells) is clunky and time consuming. 


To my utmost knowledge, what you are asking for is not possible with an AutoCAD table.. Other options?

1) (per your example) Create 10 tables with 1 column and 10 rows, then you can place them next to each other and adjust heights.

2) Use rectangles (polylines) and perhaps MTEXT or Attributes to accomplish what you desire since tables are slow.

3) If you use this table enough, create a block then with parameters you can manipulate items as necessary.

4) Git gud at AutoLISP and perhaps this is a task that you can ultimately automate?

 

That's just my insight. Hope it helps!

 

Best,

~DD

 

0 Likes
Message 7 of 7

pendean
Community Legend
Community Legend
IF the solution to meet your need is merging/unmerging of cells, then you don't need a cell resizing routine since LISP cannot add to a feature that does not exist to an object type like a table.

We'd all like to see a before and after table/cell in a DWG file from you to help better explain your intent, if you have the time/ability.

0 Likes