Author Topic: Automation Error. Invalid argument color in IAcadEntity::put_Color  (Read 1471 times)

0 Members and 1 Guest are viewing this topic.

mailmaverick

  • Bull Frog
  • Posts: 494
Whien I use (vla-put-color obj 1) I get following error :-


Automation Error. Invalid argument color in IAcadEntity::put_Color

Please help.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2120
  • class keyThumper<T>:ILazy<T>
Re: Automation Error. Invalid argument color in IAcadEntity::put_Color
« Reply #1 on: April 19, 2017, 07:07:25 AM »
Please provide code and a drawing to demonstrate your issue.
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

mailmaverick

  • Bull Frog
  • Posts: 494
Re: Automation Error. Invalid argument color in IAcadEntity::put_Color
« Reply #2 on: April 19, 2017, 07:49:05 AM »
Thanks kdub. Actually my color index was in a variable named 'colr' which had value > 255
I reduced its value, and the problem is solved.

ChrisCarlson

  • Guest
Re: Automation Error. Invalid argument color in IAcadEntity::put_Color
« Reply #3 on: April 19, 2017, 08:54:32 AM »
Just an FYI, the snippet you posted had a color code of "1". For better results post the snippet including how you set each variable.