Community
AutoCAD Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Custom toolbar & quick command together?

1 REPLY 1
Reply
Message 1 of 2
canuck7783
173 Views, 1 Reply

Custom toolbar & quick command together?

I have a custom program and put it on a toolbar.  it works fine when i manual click the toolbar to start my program.  But is there a way to attach a certain keystroke from my keyboard to access this custom toolbar program of mine?

 

I would like to just press "d" to run my program.  Is this possible?  I already tried making it into a lisp program but for some reason it doesn't work.

 

 

Below is the toolbar program that i copied and pasted from the CUI interface. It was something that my company already has been using for dimensions.  I'm jusst trying to figure a way to make it faster for me.

 

^C^CORTHO ON (COMMAND ".LAYER" "S" "DIM",)

(setq OSM (getvar "osmode"))

(setvar "osmode" 0)

(substr "ENTER FIRST SURFACE: " 1);ID;ENDPOINT \LINE @.06<90 \(setq FP (getvar "lastpoint")) @.06<90 ;Horzdim ENDPOINT

1 REPLY 1
Message 2 of 2
pendean
in reply to: canuck7783

CUI command
scroll down to the KEYBOARD SHORTCUTS, expand it.
Under SHORTCUT KEYS, create one you like and add your toolbar button code to it.

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

Post to forums  

Autodesk Design & Make Report

”Boost