Author Topic: PromptStatus for nothing found  (Read 2832 times)

0 Members and 1 Guest are viewing this topic.

Gasty

  • Newt
  • Posts: 90
PromptStatus for nothing found
« on: October 27, 2012, 03:05:36 PM »
Hi,

What is the RT code for the PromptStatus when nothing is selected in a selection operation (fence with a filter in this case)? In my case I got  RTERROR, but I believe it should be a RTNONE. It's not that I can't sleep because of that, but make me asking why.

AutoCAD 2012 32 bits
VS 2010 .NET 4.0
Mgd libs from the Inc folder

Thanks,

Gaston Nunez


gile

  • Gator
  • Posts: 2507
  • Marseille, France
Re: PromptStatus for nothing found
« Reply #1 on: October 27, 2012, 03:48:33 PM »
Hi,

PromptSelectionResult.Status returns:
  • PropmtStatus.Error (-5001) if none object is selected
  • PromptStatus.Cancel (- 5002) if the user press Escape
  • PromptStatus.OK (5100) otherwise

PromptStatus.None is returned by PromptEntityResult for example, if PromptEntityOption.AllowNone = true and the user press Enter instead of selecting an object.
Speaking English as a French Frog

fixo

  • Guest
Re: PromptStatus for nothing found
« Reply #2 on: October 27, 2012, 04:26:29 PM »
Hi,

What is the RT code for the PromptStatus when nothing is selected in a selection operation (fence with a filter in this case)? In my case I got  RTERROR, but I believe it should be a RTNONE. It's not that I can't sleep because of that, but make me asking why.

AutoCAD 2012 32 bits
VS 2010 .NET 4.0
Mgd libs from the Inc folder

Thanks,

Gaston Nunez
Just the shot in the dark
What about ErrorStatus after that?