Kenter Posted August 3, 2010 Author Posted August 3, 2010 Hello all, I was gone all weekend and came back to find very helpful things from all of you, lol popcorn eating .gif. I appreciate everyone's help. I will check over the code later today. Again, thanks. Kenter Quote
Tharwat Posted August 3, 2010 Posted August 3, 2010 Yes. Also thank you for using codes ...... ? Quote
Kenter Posted August 3, 2010 Author Posted August 3, 2010 Hey again Lee, I got the first part working (adding more options in materials) and I tried expanding to do a similar thing with the Thickness. I was unsuccessful. I tried copying the material routine and changing it with the thickness values and making a new (setq ...) statement for the thickness values but I got this error message when I ran it..: **Error: bad argument type: stringp 1.0 ** Is it that I cannot reuse 'LM:lst->str' in the thickness, or have I made a small mistake somewhere?? If you could help, it would be much abliged. Kenter Lee TEF thk.LSP Quote
Kenter Posted August 3, 2010 Author Posted August 3, 2010 Yes. Also thank you for using codes ...... ? I am not sure what you mean? I thanked everyone. Are you looking for a personal thank you?? Quote
Tharwat Posted August 3, 2010 Posted August 3, 2010 Are you looking for a personal thank you?? I am not looking for that at all. But I think it is better for you to improve your codes and your own programmes than depending on others, whatever others' codes are more and more professional than yours. Your codes are good and have the abitlities to extend them more weldly. Best regards Tharwat Quote
Kenter Posted August 3, 2010 Author Posted August 3, 2010 Well thank you. I think there is a compliment in there. And I understand what you mean about building on my own abilities, however sometimes people can show you an easier/simpler way of doing something. To learn how they do it to make yourself a better programer is not wrong to me. It strengthens the programer as long as they are actually trying and not just using others to complete a task. Kenter Quote
Kenter Posted August 3, 2010 Author Posted August 3, 2010 Hey again Lee, I got the first part working (adding more options in materials) and I tried expanding to do a similar thing with the Thickness. I was unsuccessful. I tried copying the material routine and changing it with the thickness values and making a new (setq ...) statement for the thickness values but I got this error message when I ran it..: **Error: bad argument type: stringp 1.0 ** Is it that I cannot reuse 'LM:lst->str' in the thickness, or have I made a small mistake somewhere?? If you could help, it would be much abliged. Kenter I actually realized this does work. I am not sure why I got an error the first time.... Thanks anyways Kenter Quote
Lee Mac Posted August 3, 2010 Posted August 3, 2010 Hi Kenter, Firstly, the error you were receiving is because the global variable *thk* has a data type of REAL and in your modification of my code you changed this to a STRING - hence it will not error after the document namespace is wiped when you close a drawing. Secondly, I do not mind modifications to my code, but it is coding etiquette to mark where the modifications have been made and who has made such modifications; as I am sure you can understand, failure to do so with erroneous code can reflect directly on the reputation of the original author. Lee Quote
alanjt Posted August 3, 2010 Posted August 3, 2010 I'd also like to add that I'm LOVE LOVE LOVING the Quick Reply setup. Quote
Kenter Posted August 3, 2010 Author Posted August 3, 2010 Lee, I realize what you mean. And I can understand why this should be done. Thank you again for your help. I will edit my code to show where I changed things around. Kenter Quote
Lee Mac Posted August 3, 2010 Posted August 3, 2010 Lee,I realize what you mean. And I can understand why this should be done. Thank you again for your help. I will edit my code to show where I changed things around. Kenter Not a problem Kenter, happy to help out. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.