Author Topic: Toolbutton Command Transparency  (Read 1592 times)

0 Members and 1 Guest are viewing this topic.

novice

  • Guest
Toolbutton Command Transparency
« 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...

dgorsman

  • Water Moccasin
  • Posts: 2437
Re: Toolbutton Command Transparency
« Reply #1 on: May 24, 2016, 02:39:28 PM »
You do know what that "^C^C" prefix does, right?   ;-)
If you are going to fly by the seat of your pants, expect friction burns.

try {GreatPower;}
   catch (notResponsible)
      {NextTime(PlanAhead);}
   finally
      {MasterBasics;}

Rob...

  • King Gator
  • Posts: 3824
  • Take a little time to stop and smell the roses.
Re: Toolbutton Command Transparency
« Reply #2 on: May 24, 2016, 02:41:10 PM »
You do know what that "^C^C" prefix does, right?   ;-)

I was thinking that, also.
CAD Tech

ChrisCarlson

  • Guest
Re: Toolbutton Command Transparency
« Reply #3 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.

novice

  • Guest
Re: Toolbutton Command Transparency
« Reply #4 on: May 24, 2016, 03:09:51 PM »
Lol, thanks everyone. Solved.