javid Posted September 13, 2010 Posted September 13, 2010 Please forgive my confusion... do you mean that you have been using ACAD.lsp, or your code for 10 years? You are welcome my friend. I mean both:) I'm working about 15 years with AotoCad and more than 10 years useing this code in my acad.lsp Please use it by yourself and let me know if any error you got. Quote
BlackBox Posted September 13, 2010 Posted September 13, 2010 I mean both:)I'm working about 15 years with AotoCad and more than 10 years useing this code in my acad.lsp Fair enough... Usage of ACAD.lsp vs. ACADDOC.lsp is subjective, and at the whim of the developer/user ultimately. To each their own. With respect, I kindly disagree on your usage of a LISP function (set) as a declared variable. I feel that it is a disservice to others for one to recommend that this method is acceptable as a best practice. This will confuse new developers, and is not in their best interest(s). A simply revision of the variable name can avoid this issue, and should be considered (i.e., selSet, ss, etc.). Thank you for your consideration, Javid. Quote
javid Posted September 13, 2010 Posted September 13, 2010 Fair enough... Usage of ACAD.lsp vs. ACADDOC.lsp is subjective, and at the whim of the developer/user ultimately. To each their own. With respect, I kindly disagree on your usage of a LISP function (set) as a declared variable. I feel that it is a disservice to others for one to recommend that this method is acceptable as a best practice. This will confuse new developers, and is not in their best interest(s). A simply revision of the variable name can avoid this issue, and should be considered (i.e., selSet, ss, etc.). Thank you for your consideration, Javid. Thank you dear RenderMan for your kindness. I am sympathetic with you my friend but what if any other name we use insted of "set" for example like "set1"? Is there any problem with this name or we shuld add your recommendation codes in previous post? Let me say that I'm still learning and I will be glad if you guide me more... Thanks my friend. Quote
BlackBox Posted September 13, 2010 Posted September 13, 2010 You're welcome, I am glad to help in this small way. There are many sources for recommending how to 'properly' name variables, and some of the tried and true methods (to me) seem to be when you either use a numerical pair as in "set1", or if you were revised the name already used "sset". *The point* is to avoid naming conflicts with existing LISP functions. Nothing more. We are all here to learn, my friend. ReMark (a CADTutor veteran), has a great quote in his signature, which seems fitting... "Education is a lifelong process." Quote
javid Posted September 13, 2010 Posted September 13, 2010 Tnanks my friend, This is what I was looking for and you gave it to me. Good luck. 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.