Jump to content

Custom commands


Recommended Posts

Posted

hi,

 

I would like to make custom commands. I think that i can do that in the CUI (with the same command), but what i don't know is how to make an new command.

 

For starters i would like to make the command "pej" for "Pedit > Join" and "pec" for "Pedit > Close"

 

When i want to create an new command i see an textfield (macro) that says ^C^C .

 

How do i know what those things mean?

I don't know any commands that do a sub command with 1 key/command, otherwise i could check on those how its build up.

 

Thanks in advance.

Posted
hi,

 

I would like to make custom commands. I think that i can do that in the CUI (with the same command), but what i don't know is how to make an new command.

 

For starters i would like to make the command "pej" for "Pedit > Join" and "pec" for "Pedit > Close"

 

When i want to create an new command i see an textfield (macro) that says ^C^C .

 

How do i know what those things mean?

I don't know any commands that do a sub command with 1 key/command, otherwise i could check on those how its build up.

 

Thanks in advance.

 

For the new command just right click on a tool bar button and go down to customize, from there right click on one of the list items and click new command.

 

For the macro command text try the following:

 

Ok go to google and type

 

Autocad 2000 Customization guide, you the link you need to look at is the first one that has introdiction in front of it. That will be a pdf.

 

The second one is Tailoring-AutoLISP-DCL-Diesel, if you are looking for that just send me a private message and I can help you with that one.

 

I hope this helps. Read the first link I sent before you reply so you can see what questions you have after that.

Posted

Look in your help file as well. Run a search through your help file for "Create Macros" This page should explain the syntax and contain the link to the page for the special control characters.

Posted

Does 2009 still include the Alias Editor? It modifies the acad.pgp file (if that's still used)

Posted

Edit: Crap, the code messed up my post. Sorry, i will repost later today, i spend to much of my boss his time allready :D.

Posted

You have aliases already out of the box check acad.pgp you can add your own including custom lisps

 

L C Z P AR PE line circle zoom pan pedit etc just try typing one character lots of commands

 

We have 39 59 99 also snap settings R0 (r zero fillet radius) plus lots more

Posted

Sorry thinking of Acad.lsp

 

; (e.g. enter ZW for zoom window)

 

(defun c:zm () (command "zoom"))

(defun c:za () (command "zoom" "a"))

(defun c:zw () (command "zoom" "w"))

 

(defun c:pej () (command "pedit" "J"))

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