Jump to content

LISP Command names and shortcuts


Recommended Posts

Posted

I'm posting here because I think this is more of a management questions than a lisp question.

 

My question is this;

 

if you have a suite of lisps, do you give the command names "shortcut" names or full descriptive names?

 

For example, I have a command that I call "COPYRADIAL". in my lisp that's what you use to call it.

 

(defun C:COPYRADIAL (/)...etc

 

Some people might just use

 

(defun c:CR (/)...etc

 

I don't use a shortcut because I don't want to inadvertently override a users personal pgp customizations, or an ACAD shortcut I just missed.

 

The only downside is some users are not savvy enough to figure out how to customize their shortcuts. (i know, i know).

 

How do you CAD managers approach this?

Posted

CPR cardiopulmonary resuscitation or copy radial.

 

Just check acad.pgp 1st.

  • 1 month later...
Posted

With autocad's autocomplete function, lately, I have had longer command names, since it's easy to use once you've typed them in a couple times.

  • Like 1
  • 6 years later...
Posted

I have comprise a very long lisp file for all of my shortcuts.  I saw someone's code that use a ":" for a prefix to a command.  This idea made me group my sub-commands.  For me, I use colon followed by a thing to launch a text based menu to trigger other commands.  I just have one menu to focus on my workflow.  This way out can use long function names.  I took a class in OOP so my function are similar to that.  Also this way a user can create a function to call another function to just shorten the name.

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