First off if the hard coded objects layer is locked the lisp will bomb...
What if this lisp gets run twice? Wouldn't your weights be wrong?
I didn't think about locked layers.....good point. And I planned on adding code to grab the user and drawing name so that it will only run once in the current drawing.
My intent is for personal use only. I am the only one in my company that is forced to use lineweights to satisfy a client. So making this perfect wasn't a high priority. I'd be happy with it, if it didn't error.
I do appreciate your comments because your making me think harder about this. Now I'm debating if I should somehow calculate the lineweight instead. And add an option for adding or subtracting from the current lineweight. I'll see what I can do when I have more time. Thanks, Ron!