Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Login
Register
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Automation Error. Invalid argument color in IAcadEntity::put_Color
« previous
next »
Print
Pages: [
1
] |
Go Down
Author
Topic: Automation Error. Invalid argument color in IAcadEntity::put_Color (Read 1516 times)
0 Members and 1 Guest are viewing this topic.
mailmaverick
Bull Frog
Posts: 493
Automation Error. Invalid argument color in IAcadEntity::put_Color
«
on:
April 19, 2017, 06:54:40 AM »
Whien I use (vla-put-color obj 1) I get following error :-
Automation Error. Invalid argument color in IAcadEntity::put_Color
Please help.
Logged
kdub_nz
Mesozoic keyThumper
SuperMod
Water Moccasin
Posts: 2139
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.
Logged
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: 493
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.
Logged
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.
Logged
Print
Pages: [
1
] |
Go Up
« previous
next »
TheSwamp
»
Code Red
»
AutoLISP (Vanilla / Visual)
»
Topic:
Automation Error. Invalid argument color in IAcadEntity::put_Color