Exception during GetPoint function

Exception during GetPoint function

Anonymous
Not applicable
791 Views
3 Replies
Message 1 of 4

Exception during GetPoint function

Anonymous
Not applicable
I've aded this event

ed.PointFilter += new Autodesk.AutoCAD.EditorInput.PointFilterEventHandler(psRoomConnector_PointFilter);

and than call this function

Autodesk.AutoCAD.EditorInput.PromptPointResult ppr = ed.GetPoint(ppo);

psRoomConnector_PointFilter function generates Exception. If exception is generated than GetPoint finction doesn't finish correctly and autocad get in some undetermined state.

How to cancel getPoint function if exception was generated? or how to solve this situation?
0 Likes
792 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable
{quote}

psRoomConnector_PointFilter function generates Exception.

{quote}

Are you asking us to guess why it is throwing an error?

I don't think anyone can help you because we can't guess
what your code is doing wrong.

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:[email protected]...
I've aded this event

ed.PointFilter += new
Autodesk.AutoCAD.EditorInput.PointFilterEventHandler(psRoomConnector_PointFilter);

and than call this function

Autodesk.AutoCAD.EditorInput.PromptPointResult ppr = ed.GetPoint(ppo);

psRoomConnector_PointFilter function generates Exception. If exception is
generated than GetPoint finction doesn't finish correctly and autocad get in
some undetermined state.

How to cancel getPoint function if exception was generated? or how to solve
this situation?
0 Likes
Message 3 of 4

Anonymous
Not applicable
No, I'm asking how to cancel getPoint function.
In other words if I start GetPoint function and than press Esc in Autocad, this function will be terminated. How to do it in C#? Edited by: ViaVitae on Oct 10, 2009 10:05 AM
0 Likes
Message 4 of 4

Anonymous
Not applicable
There's no way to cancel a GetPoint() other than by sending ^C/ESCape to the
command line.


--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD
Supporting AutoCAD 2000 through 2010

http://www.acadxtabs.com

Email: string.Format("{0}@{1}.com", "tonyt", "caddzone");

wrote in message news:[email protected]...
No, I'm asking how to cancel getPoint function.
In other words if I start GetPoint function and than press Esc in Autocad,
this function will be terminated. How to do it in C#?

Edited by: ViaVitae on Oct 10, 2009 10:05 AM
0 Likes