AutoCAD for Mac Forum
Welcome to Autodesk’s AutoCAD for Mac Forums. Share your knowledge, ask questions, and explore popular AutoCAD for Mac topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom Alias for Compound Command

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
bretwieseler
480 Views, 3 Replies

Custom Alias for Compound Command

Creating a custom alias for a simple command is easy enough:  <Alias>,*<Full command name>,

but how do I create an alias for a compound command, e.g.  <mead>,*<measuregeom [-distance]>?

 

-Thanks

-Bret


3.6 GHz 8-Core Intel Core i9 | 13.6.1 | AutoCAD LT for MAc 2024.1
Tags (3)
3 REPLIES 3
Message 2 of 4
maxim_k
in reply to: bretwieseler

Hi Bret,

If you are using full AutoCAD (not LT), and you want an "alias" for command with options, than you can create simple AutoLISP routine which will create new alias like ccommand.

In your case it will look like this:

(defun C:MEAD ( / )
(command "_MEASUREGEOM" "_D")
)

After you will load this routine you will be able to use MEAD "alias" which will call MEASUREGEOM command with Distance option.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
Message 3 of 4
bretwieseler
in reply to: maxim_k

Thanks Maxim.

 

Am I able to load a lisp routine directly from the  command line?

 

-Bret


3.6 GHz 8-Core Intel Core i9 | 13.6.1 | AutoCAD LT for MAc 2024.1
Message 4 of 4
maxim_k
in reply to: bretwieseler

Yes,

You can copy - paste the code to the Command window.
Just hit Return after the last parenthesis.
If everything is correct, you should see:
C:MEAD
at the command prompt.

Maxim

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report