Jump to content

Blacklist certain commands from REPEAT


Recommended Posts

Hi all,

Just wondering if there is any way to "blacklist" specific commands from being repeated when pressing spacebar (or REPEAT) ?

 

For example, using default AutoCAD settings:

1. Use command "PL" in paper space, finish drawing polyline.

2. Double click inside a viewport, AutoCAD automatically runs "MSPACE" command.

3. Press spacebar, AutoCAD attemps to run "MSPACE" again and nothing happens.

 

 

I want to be able to blacklist certain commands such as "MSPACE", so that in step 3 AutoCAD will repeat the last non-blacklisted command "PL" instead of "MSPACE". Is this possible?

 

Thanks

 

Link to comment
Share on other sites

When using a command like polyline or line all you need to do is hit spacebar (easiest key to find on the keyboard!) to finish the command.

It's really not possible to make this any simpler.

  • Like 1
Link to comment
Share on other sites

Hi GEO501, welcome to CADTutor.   :)

You sound like a likely candidate for Right-click Customization, which I have always enjoyed.

I hate taking my hand off the mouse.

So this is a bit off topic, but if you are unfamiliar with it, you might enjoy checking it out.

image.thumb.png.ac68b055ed13b7d26a96fbcd42ea9c87.png

  • Like 1
Link to comment
Share on other sites

You could add an custom command to bind the 'polyline' command to a button your left hand can reach.  Not that i use it that much (muscle memory doesn't even make me think twice when i enter PL command) , but i have certain number combinationd bound to commands.

Like when i am in a viewport, i use '11' command to go back to paperspace (disables the active viewport so i can zoom out in case it's not locked).  And i use '13' to draw a polyline.
i also have '1, 2, 4, 5, 10 and 20' commands to set a scale in my viewport (XP value) or 50, 100, 200, 250, 500 and 1000 commands for the 1:xxx scale.  It's way faster than going through menu's.

But in case of starting the (poly)line command, i created a custom command that i can activate with my left hand.  Or you could assign a mousebutton to it.
Every mouseclick extra is one to much in my book, so contextmenu's are a no-show in my autocad sessions.

 

Link to comment
Share on other sites

Most users might want to take advantage of using the tilde button for custom shortcalls, as it is prime left hand real estate,

right in the sweet zone where my hand rests..

If I click it once it means MOVE, twice returns me to PAPERSPACE.  :beer:

Three times means COPY.

Edited by Dadgad
typo fixed
Link to comment
Share on other sites

@BIGAL for me ZZ means align dimensions, and ZZZ calls up a wonderful Lisp by GP which he posted in 2014.  :thumbsup:

Definitly helpful to create shortcalls in the sweet-spot, where you like to station your left hand over your keyboard.    :beer:

 


;  -- User Defined Command Aliases --
;  Make any changes or additions to the default AutoCAD command aliases in
;  this section to ensure successful migration of these settings when you
;  upgrade to the next version of AutoCAD.  If a command alias appears more
;  than once in this file, items in the User Defined Command Alias take
;  precedence over duplicates that appear earlier in the file.
;  **********----------**********  ; No xlate ; DO NOT REMOVE


AR,        *ACTRECORD
B,         *BREAK
C,         *COPY
D,         *DIST
DR,        *DIMROTATED
DV,        *DDVPOINT
F,         *FLATTEN
LI,        *LAYISO
LU,        *LAYUNISO
MAT,       *MATERIALS
MI,        *MULTIPLEINSERT
QC,        *QUICKCUI
R,         *ROTATE
RC,        *RIBBONCLOSE
RR,        *RIBBON
RW,        *RENDERWIN
SP,        *SECTIONPLANE
ST,        *STANDARDS
T,         *TRIM
VS,        *BVSTATE
TM,        *TXT2MTXT
CD,        *CDORDER
PSS,       *POLYSOLID
1,         *CIRCLE
2,         *ELLIPSE
3,         *ROTATE3D
4,         *RECTANG
5,         *POLYGON
6,         *SLICE
AAA,       *AREA
BB,        *DIMBASELINE
CC,        *CHAMFER
CG,        *CHANGE
DD,        *DIMSTYLE
VV,        *DVIEW
EE,        *EXTRUDE
EEE,       *PEDIT
LL,        *QLEADER
MM,        *MIRROR
OOO,       *OSNAP
Q,         *LIST
```,       *COPY
QQ,        *QSAVE
RRR,       *REDRAWALL
SS,        *SCALE
TT,        *MTEXT
UU,        *UNION
XX,        *EXTEND
ZZ,        *DIMSPACE
CS,        *CHSPACE
II,        *IMAGEFRAME
VD,        *DVIEW
PP,        *PURGE
HH,        *HIDE
DDD,       *3DORBIT
PPP,       *PRESSPULL
XXX,       *XLINE
``,        *PSPACE
`,         *MOVE
11,        *PLINE
22,        *QLEADER
33,        *MIRROR
FF,        *FILTER
GG,        *CHECKING
WW,        *ACTRECORD
333,       *MIRROR3D
OK,        *OVERKILL
XZ,        *XEDGES
VB,        *VIEWBASE
SD,        *DISPSILH
BX,        *BLOCKTOXREF
DF,        *DIMLINEAR
GS,        *GENERATESECTION
SSSS,      *SOLPROF
JJ,        *MOCORO
QS,        *QUICKSELECT
BN,        *BREAK@
OO,        *OSMODE
XT,        *EXTRIM
CB,        *CIRCLEBREAK
MMMM,      *MODEMACRO
AE,        *ALIASEDIT
DU,        *-DWGUNITS
MMM,       *MEASUREMENT
HHH,       *HATCHTOBACK
222,       *ERASE
YY,        *COPYBASE
HC,        *HICOLONIC
UUU,       *PDFOSNAP
DC,        *DIMCONTINUE
CCC,       *CLOSE
44,        *MSPACE
55,        *PASTECLIP
111,       *CLOSE
GGG,       *CLOSEALL
````,      *MIRROR
SSS,       *SECTION
DB,        *DIMBREAK
CA,        *CLOSEALL
AC,        *ATTCOL
DA,        *DIMASSOC
DBB,       *DBLCLKEDIT
CL,        *CLAYER
AA,        *ARRAYCLASSIC
AT,        *ATTCOL
MMP,       *MASSPROP
MP,        *MATCHPROP
RT,        *RESETTEXTPOSITION

Edited by Dadgad
Thanks to GP!
Link to comment
Share on other sites

Thanks Dadgad, thats a great idea for a work around.

 

I did a bit more research and it doesn't look like its possible to restrict "REPEAT" from only repeating specific commands.

 

I'll setup some single-key aliases and start getting used to typing those instead of hitting spacebar.

Link to comment
Share on other sites

The ALIAS EDITOR is your friend.  :beer:

 

Command shortcalls which are created or edited using the Alias Editor

will be made in the correct place, as my screenshot showed, all the way at the very bottom of your .pgp file.

 

Done in that way the command shortcalls you change will migrate with your software.

Be sure whenever you EDIT your .PGP file that you SAVE yourself a copy

somewhere you will remember outside the software for safe keeping.

Always a good idea, because opening a file if you need to, is a lot easier than trying to remember all of them

and recreating them.   ;)

  • Like 1
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...