TheSwamp

CAD Forums => CAD General => Topic started by: novice on May 24, 2016, 02:11:44 PM

Title: Toolbutton Command Transparency
Post by: novice on May 24, 2016, 02:11:44 PM
I've just started editing the CUI for the first time. Made a custom toolbar. Added a few AutoCAD commands to it. Added a couple of my lisp routines. Tried my hand at a pull-down menu, too. Added a lisp routine to it. So far so good.

But now I want to make a toolbutton for a lisp routine that I always use transparently. But when I click the new toolbutton with this command, it always takes me out of the original command and then starts my new command. So it doesn't work transparently.

In the CUI, I defined the macro with the apostrophe for the transparency: my lisp routine is CC, I always use it transparently on the command line by typing 'CC in the middle of a command, and the macro in the CUI looks like this: ^C^C_'cc

Any suggestions? I can't find anything on Google...
Title: Re: Toolbutton Command Transparency
Post by: dgorsman on May 24, 2016, 02:39:28 PM
You do know what that "^C^C" prefix does, right?   ;-)
Title: Re: Toolbutton Command Transparency
Post by: Rob... on May 24, 2016, 02:41:10 PM
You do know what that "^C^C" prefix does, right?   ;-)

I was thinking that, also.
Title: Re: Toolbutton Command Transparency
Post by: ChrisCarlson on May 24, 2016, 02:45:47 PM
http://help.autodesk.com/view/ACD/2016/ENU/?guid=GUID-D991386C-FBAA-4094-9FCB-AADD98ACD3EF


Quote
^C^C
Special control character sequence
Sequence that is similar to pressing the Esc key twice.
Title: Re: Toolbutton Command Transparency
Post by: novice on May 24, 2016, 03:09:51 PM
Lol, thanks everyone. Solved.