.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Avoid Error !

3 REPLIES 3
Reply
Message 1 of 4
gilseorin
153 Views, 3 Replies

Avoid Error !

Hi, all.
In my code, when no object to be selected, error occurs.
To avoid this error, what should I add in my code?
3 REPLIES 3
Message 2 of 4
Anonymous
in reply to: gilseorin

Sorry for stating the seemingly obvious ....
... test for the condition or trap the exception.

Refer to the Prompt and Selection Solution examples in the SDK
..\Samples\DotNet folder

/// kwb

wrote in message news:5434546@discussion.autodesk.com...
Hi, all.
In my code, when no object to be selected, error occurs.
To avoid this error, what should I add in my code?
Message 3 of 4
gilseorin
in reply to: gilseorin

Thank you for your information.
It's solved.
And, Pardon my ignorance.
Message 4 of 4
Anonymous
in reply to: gilseorin

The Status property of the PromptResult based
classes will be set to something other than
ErrorStatus.OK, if no input is provided.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com

wrote in message news:5434546@discussion.autodesk.com...
Hi, all.
In my code, when no object to be selected, error occurs.
To avoid this error, what should I add in my code?

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost