How to set Table Cell Colour ?

How to set Table Cell Colour ?

Anonymous
Not applicable
281 Views
2 Replies
Message 1 of 3

How to set Table Cell Colour ?

Anonymous
Not applicable
Can someone point me in thet right dirtection please?

I am trying to set the table cell colour to colour 40.

What is the corretc syntax?

I have tried the following, but get a variant error?

(setq col '(255 191 0))
(vla-SetCellContentColor vla_table 0 0 col)

Cheers

Scott
0 Likes
282 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
If you read the documentation, you see that a AcCmColor object is required
to set the color.

--
R. Robert Bell


wrote in message news:5228203@discussion.autodesk.com...
Can someone point me in thet right dirtection please?

I am trying to set the table cell colour to colour 40.

What is the corretc syntax?

I have tried the following, but get a variant error?

(setq col '(255 191 0))
(vla-SetCellContentColor vla_table 0 0 col)

Cheers

Scott
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks Robert,

I got some help in the customistion group. I know I shouldn't cross post, but wasn't sure where I should look for help,

I tried to read the documentation, but must admit that I couldn't make heads or tails of the examples - examples are for VBA. I struggle enough with LISP!

Cheers

Scott
0 Likes