PDA

View Full Version : Toggling PICKSTYLE



O Snap!
21st Sep 2005, 06:39 pm
Acad 2004

When working with GROUPS, I use CTRL H to toggle PICKSTYLE on and off.

Because of my lack of fingerspan, it's awkward to be stretching single-handedly between the two keys. (no comments on having "small hands" please :cry: )

Is there a way to change the toggle to a different ctrl button?

[now, I know I can go into the pgp and create a shortcut for the PICKSTYLE command, but that only creates the additional task of having to select 1 or 0.]

Thanks,

Dommy2Hotty
21st Sep 2005, 07:27 pm
Two ways:

1) Copy and paste this to your command prompt and hit enter:


(startapp "notepad" (findfile "ACAD.MNS"))

Change the last entry to what key you want:


[CONTROL+"H"]+
'_setvar;pickstyle;$M=$(if,$(eq,$(getvar,pickstyle ),0),1,$(if,$(eq,$(getvar,pickstyle),1),0,+
$(if,$(eq,$(getvar,pickstyle),2),3,2)))

could become:


[CONTROL+"F"]+
'_setvar;pickstyle;$M=$(if,$(eq,$(getvar,pickstyle ),0),1,$(if,$(eq,$(getvar,pickstyle),1),0,+
$(if,$(eq,$(getvar,pickstyle),2),3,2)))

Or you could make a button for it:


'_setvar;pickstyle;$M=$(if,$(eq,$(getvar,pickstyle ),0),1,+
$(if,$(eq,$(getvar,pickstyle),1),0,^M;$(if,$(eq,$( getvar,pickstyle),2),3,2)))

O Snap!
21st Sep 2005, 09:27 pm
Um... okay... :? <scratching head>

Looks easy enough if you're sure that isn't some trick to reformat my HD or something.

I'll give it a try later in the day. If someone knows a shorter way, speak up now. :)

Dommy2Hotty
21st Sep 2005, 10:14 pm
Basically, open your acad.mns file, scroll to the **ACCELERATORS, and change the H to whatever you want to hit with ctrl to toggle the pickstyle.

http://home.comcast.net/~dominic.cesare/cad/pickstyle_toggle.gif

Dommy2Hotty
21st Sep 2005, 10:20 pm
Or make a button you can click (works just like an accelerator 'ctrl'+'H'):
http://home.comcast.net/~dominic.cesare/cad/pickstyle_toggle_button.gif

O Snap!
22nd Sep 2005, 04:24 pm
Basically, open your acad.mns file, scroll to the **ACCELERATORS, and change the H to whatever you want to hit with ctrl to toggle the pickstyle.



Thanks, this looks like the easier way to do it. I've never messed with the .mns before. At least this way, I can see what other code(s) I'll be reprogramming.

Dommy2Hotty
22nd Sep 2005, 04:37 pm
Speaking of the .mns file:

If you reload the base AutoCAD menu (acad.mnU) by using the 'menu' command, you will lose any customization you have made to the acad.mnS file. A little background on this:

Say you load a partial menu (EXPRESS is a partial menu). Now you're done using it and you go to unload it, but you accidently select the ACAD menugroup. You lose your toolbars, pulldowns...etc. You panic. You find out that you need to load the ACAD menu file to get it back. What you don't know is that any changes to toolbars, accelerators, etc are saved to the acad.mnS file, not the .mnU file. I believe the help file might say to load the .mnU file. So you do. So AutoCAD begins to load it, and updates the .mnS file, thus undoing your customization. Now you have to do it all over again. So, in conclusion:

Make your changes to the .mnS file to see it in action the next time you start AutoCAD, but make those same changes to the .mnU file, so that in case you need to reload it, you'll have it in there. Same goes for toolbars. Also, keep an unedited copy of the acad. mnU file in another location so that you can revert to a standard install.

Just wanted to let you know that there's things to watch out for.