Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Keyboard shortcut for right-click menu items?

bretwieseler
Advocate

Keyboard shortcut for right-click menu items?

bretwieseler
Advocate
Advocate

Hello.

 

Is there a way to set a keyboard shortcut for actions like polyline/spline fit, or other such right-click items?

 

Thanks in advance.

-Bret


3.6 GHz 8-Core Intel Core i9 | 13.6.1 | AutoCAD LT for MAc 2024.1
0 Me gusta
Responder
Soluciones aceptadas (2)
486 Vistas
6 Respuestas
Respuestas (6)

paullimapa
Mentor
Mentor

commands that require a second prompt response to carry out unfortunately cannot in and of themselves be added in as a shortcut. But if you have a lisp function then that can be added in as a shorctut.

For example for Pedit Spline a simple lisp function could be:

(defun c:spf ()(if(ssget "I" '((0 . "LWPOLYLINE")))(command"_.pedit""_Spline""_Exit")(princ"\nNo Pline Selected."))(princ))

Now you can save this as spf.lsp & load it (load"spf") then you can add SPF as shortcut:

https://www.autodesk.com/support/technical/article/caas/sfdcarticles/sfdcarticles/To-Customize-Short...

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Me gusta

paullimapa
Mentor
Mentor

FYI, you can also place the lisp function into startup suite to load automatically:

https://help.autodesk.com/view/ACDMAC/2024/ENU/?guid=GUID-47621BB1-F29D-4A69-9C99-A6E1495FBA38


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Me gusta

maxim_k
Consultant
Consultant

Hi @bretwieseler ,

 

Why not to use one-letter key for selecting options inside such commands:

 

_pedit
Enter an option [Close/Join/Width/Edit vertex/Fit/Spline/Decurve/Ltype gen/Reverse/Undo]:

 

S+Spacebar for Spline,

F+Spacebar for Fit,

etc.


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
0 Me gusta

bretwieseler
Advocate
Advocate
Solución aceptada

@paullimapa: Unfortunately, we used AutoCAD LT, so the LISP solution isn't an option.

@maxim_k: Ideally I would select the polyline and key in the shortcut without having to type anything else in.

 

Thanks for the ideas though!

-Bret


3.6 GHz 8-Core Intel Core i9 | 13.6.1 | AutoCAD LT for MAc 2024.1
0 Me gusta

maxim_k
Consultant
Consultant
Solución aceptada

Hi Bret,

@bretwieseler 

 


@bretwieseler wrote:

........

@maxim_k: Ideally I would select the polyline and key in the shortcut without having to type anything else in.

 

......


Start CUI command:

2023-12-09_09-46-57.png

 

2023-12-09_09-49-30.png

 

2023-12-09_09-50-52.png

 

2023-12-09_09-51-52.png

 

Now select polyline and use Option+Command+S shortcut to Spline it.

The limitation is that only one polyline object can be selected at a time.


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

bretwieseler
Advocate
Advocate

Thanks Maxim!

-Bret


3.6 GHz 8-Core Intel Core i9 | 13.6.1 | AutoCAD LT for MAc 2024.1
0 Me gusta