Jump to content

Shortcuts for custom commands not working


Recommended Posts

Hi guys,

 

I've been browsing the site for a while now and finally decided to sign up. Thanks for all the past help and being a fantastic resource :)

 

 

I'm trying to make shortcuts for some custom commands we have here at work. I've edited my KEYS.lisp with

 

(defun c:XX () (prompt "xlist...") (command ".xlist") (princ))

 

But when I enter the shortcut into Autocad after APPLOAD the KEYS.lisp with the changes I get:

 

'xlist...Unknown command "XLIST". Press F1 for help.'

 

When I've used the same approach in the past it has worked for editing standard Autocad commands. The xlist command is used to identify layers in Xref, by the way I can't make changes to the acad.pgp because the file is located on a server I cannot access.

 

Can anyone help me out?

Thanks in advance

 

Alex

Link to comment
Share on other sites

Have a look for autoload.lsp acad.lsp you can add your own defuns there as well rather than acad.pgp. Also these load automatically then

Link to comment
Share on other sites

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