Table Row Style

Table Row Style

felipealvarezacevedo
Observer Observer
451 Views
6 Replies
Message 1 of 7

Table Row Style

felipealvarezacevedo
Observer
Observer

Hi,

 

I need to change the Row Style (For example: acDataRow, acHeaderRow or acTitleRow) of some rows of a table in AutoCAD, but using autolisp, since it is for a routine to automate some tables. So far I have not found any function that allows me to do what I want to do.

 

In this other forum a user posed the same problem but they have not given him a solution either: https://www.cadtutor.net/forum/topic/62612-table-row-style/

 

If perhaps someone has an idea to give a solution to what I need I would appreciate it very much.

0 Likes
452 Views
6 Replies
Replies (6)
Message 2 of 7

paullimapa
Mentor
Mentor

Here’s another thread that just changes the color of those three different rows 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 7

felipealvarezacevedo
Observer
Observer

@paullimapa  Exactly, in that case the color is being applied to the row styles that are already defined previously. In my case is that I want to change the style of the row, that is to say that for example originally the first row has originally Row style “Title” and I require a function and/or routine that allows me to change to “Data”.

0 Likes
Message 4 of 7

paullimapa
Mentor
Mentor

Here's another way of looking at it. Perhaps you want to create a new table style with those changes you want. Then select a Table that uses the previous table style and change it to the new


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 5 of 7

Sea-Haven
Mentor
Mentor

There are 2 variables that you may be able to set in a table style. An example.

"\nHeader Suppression = " (if (= (vla-get-HeaderSuppressed customObj) :vlax-true) "True" "False"
"\nTitle Suppression = " (if (= (vla-get-TitleSuppressed customObj) :vlax-true) "True" "False")

 

 

0 Likes
Message 6 of 7

felipealvarezacevedo
Observer
Observer
With this I get to put by Data as Row Style of the rows that were Title and Header, by the fact of suppressing it, but I need is that for example the first two rows are Title and the third row is Header.
0 Likes
Message 7 of 7

Sea-Haven
Mentor
Mentor

I would make the entire table all data then you can customise any row to look like a Title row. You can set any row height and same with text inside.

 

 

 

 

 

; Title
(vla-mergecells tblobj 1 1 1 5)

 

 

(vla-setrowheight tblob 4 5.0)
(vla-SetCellTextHeight tblobj 0 0 3.0)

 

 

 

0 Likes