The lineweight value must be an integer and it must be a valid value (0.014 is not in the standard list so it will fail even if passed correctly).
(vla-put-lineweight lay 14)
; error: Automation Error. Invalid lineweight value
(vla-put-lineweight lay 15)
nil
a return value of nil means it worked....and that layer now has a LW of 0.15
HTH
Yes, thank you, that helps tremendously.
According to what I just read on Afralisp valid values are -3 (ByLwDeafault), -2 (ByBlock), -1 (ByLayer), 0, 5, 9, 13, 15, 18, 20, 25, 30, 35, 40, 50, 53, 60, 70, 80, 90, 100, 106, 120, 140, 158, 200, 211
And 15, for me, works out to be 0.006"
* nivuahc goes to do more digging
* nivuahc waves at Daron