PDA

View Full Version : M2P is too long..



chrisdarmanin
26th Nov 2007, 11:51 am
how can i make a keyboard shortcut to make it shorter? it seems that i cant through acad.pgp.

what i would like is something like MPP rather than M2P or something similar

Alan Cullen
26th Nov 2007, 11:58 am
If I read you right, all you have to do is change the M2P in the acad.pgp file to MMP, or even MP if you want. Then type REINIT for it to take effact immediately.

Raggi_Thor
26th Nov 2007, 12:06 pm
I suppose you know the Shift + Right click method.

If you define a new command in lisp like this,

(defun c:MP()
(command "_M2P")
)

you have to type 'MP to use it.

You can also look into the CUI dialog and make a new keyboard shortcut, I think.

chrisdarmanin
26th Nov 2007, 12:07 pm
cant do it through acad.pgp even after i REINIT

if i type MPP (which has been changed through acad.pgp to M2P) before a command it works but obviously its an unknown command by itself.

if i type it after i start a command it doesnt recognise it...

btw its acad 2007 full

chrisdarmanin
26th Nov 2007, 12:09 pm
I suppose you know the Shift + Right click method.

If you define a new command in lisp like this,

(defun c:MP()
(command "_M2P")
)

you have to type 'MP to use it.

You can also look into the CUI dialog and make a new keyboard shortcut, I think.

yes i know of the shift right click but i like to use the keyboard :)

tried through the CUI but dont know how to make it work...

i'll try the lisp...

chrisdarmanin
26th Nov 2007, 12:14 pm
the lisp didn't work.

what i need it to start the command during another command such as line or mirror

Alan Cullen
26th Nov 2007, 12:28 pm
What exactly is M2P? Is it a lisp routine? Because my 2007 doesn't recognise it as a command.

chrisdarmanin
26th Nov 2007, 12:33 pm
mid between 2 points

start the line command then type M2P.

its a great command and i use it a lot

Alan Cullen
26th Nov 2007, 12:43 pm
I don't think it's actually a command, all I can find is that it is a command modifier, bit like osnap maybe. If I'm correct you can't give it a shortcut, unless Ragi's suggestion works.

Sorry, I've never used it, so I'm not at all familiar with it. :(

chrisdarmanin
26th Nov 2007, 12:51 pm
yes its to snap between 2 point. its part of osnap so i guess its a command modifier

thanks for your help anyway
:)

SLW210
26th Nov 2007, 05:35 pm
It is a command modifier. You can make a button for it and it should already be in the Shift+Right-Click shortcut Menu.

Mr Cory
27th Nov 2007, 02:53 am
I agree with SLW210, macro would be the easiest & fastest way to do it. You could go through and create lisp's with the mp2 built into the command :wink:

Alan Cullen
27th Nov 2007, 03:40 am
And I also agree with AGM. So I have set a button up for it. Go to the CUI and set up a new command as follows:

3494

3496

The macro for the button is: *^C^C.line;M2P;\;

Here is a button that I created. I renamed it mtp.txt so I could post it here. If you want it, rename it to mtp.bmp.

3495

Stick it in here: C:\Documents and Settings\Admin\Application Data\Autodesk\AutoCAD Map 3D 2008\R17.1\enu\Support\Icons\

This new button macro works well for me, so it should also work well for you.

Sometimes I surprise and amaze myself when things I try to do actually work. :lol: :lol: o:)

CarlB
27th Nov 2007, 04:05 am
Sounds like the OP prefers the keyboard, easiest keystroke combination. You can only get so many easy short commands :)

Similar to Raggi_Thor's suggestion, here's another lisp idea;

Load the following, unnamed lisp. When you want to use "m2p", instead type [''] (that's "apostrophe-apostrophe-enter"). I know, doesn't seem likely. But it removes that pesky "2" way across the keyboard.

(defun c: ()
(princ "_m2p")
)

Raggi_Thor
27th Nov 2007, 02:21 pm
..
(defun c: ()
(princ "_m2p")
)

Is something missing here?
Or is it just me, being too slow :)

Raggi_Thor
27th Nov 2007, 02:22 pm
If i do

(defun c:MP()
(princ "_m2p")
)

I still have to type 'MP
not just MP

CarlB
27th Nov 2007, 06:01 pm
Is something missing here?
Or is it just me, being too slow

No nothing's missing, try it. It's "the routine about (named) nothing" (not that's there's anythying wrong with that) :)

After 'defun' it's "c-colon-pair of parentheses". I first tried giving it a name of "apostrophe" so it could be caled with 2 apostrophes, but that wasn't allowed. But giving it a name of "nothing" or "space" is allowed.