Author Topic: Right click does not cancel active command  (Read 1817 times)

0 Members and 1 Guest are viewing this topic.

simor

  • Guest
Right click does not cancel active command
« on: October 09, 2008, 09:10:08 AM »
I'm doing a ed.GetPoint in a loop, and was hoping it will behave like in VBA (yes, everything in VBA seems to be done the right way and everything in ARX is done the wrong way  :realmad: /end of rant) ie. when I right click then GetPoint will return something that I can identify and break the loop... but no, it keeps asking me for a point until I press the magic ESC  :x

Is there's an easy way to make it break at the right click? :oops:

___
.Net C# 2005, AutoCAD 2008

simor

  • Guest
Re: Right click does not cancel active command
« Reply #1 on: October 10, 2008, 06:42:01 AM »
Of course there is simor, ARX has a wonderful API where everything is possible it's just either hidden.in.some.very.long.and.not.so.obvious.namespace or disabled by default or other reason just to make your life a bit more challenging  :evil:

Code: [Select]
               
PromptPointOptions prPointOptions = new PromptPointOptions("Select a point");
prPointOptions.AllowNone = true; // <----- YAY!!
PromptPointResult prPointRes = ed.GetPoint(prPointOptions);

It's Alive!

  • BricsCAD
  • Needs a day job
  • Posts: 6934
  • AKA Daniel
Re: Right click does not cancel active command
« Reply #2 on: October 10, 2008, 06:45:05 AM »
Glad you got it.

BTW, If you are doing C#/NET, you might get better responses by posting in the .NET area.