Jump to content

Shortcut/command for re-selecting


Recommended Posts

Posted
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.

  • Replies 24
  • Created
  • Last Reply

Top Posters In This Topic

  • BlackBox

    6

  • javid

    6

  • RobDraw

    3

  • camillastn

    2

Posted
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.

Posted
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.

Posted

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."

Posted

Tnanks my friend,

This is what I was looking for and you gave it to me.

Good luck.:)

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...