You have to make sure the area defined by the Rectangle MUST be within
visible screen area, that is the requirement for all the Editor.SelectXXX()
methods.
If I have to do this, I usually do a zoom to window, which is slightly
bigger than the picking window to ensure the picking window is within
screen's visible area, before call the Editor.SelectXXXX().
wrote in message news:5550959@discussion.autodesk.com...
some snippet list as below:
...
Rectangle rec=...;//Define the Rectangle
PromptSelectionResult prompSelRes = ed.SelectCrossingWindow(rec.LowerLeft,
rec.UpperRight);
...
My problem is,the "SelectCrossingWindow" function randomly return different
value,though
the current graphic dwg and the "rec" Defined are same all the time.
sometimes the return value prompSelRes.Status==PromptStatus.OK,
sometimes prompSelRes.Status==PromptStatus.Erroe.
here "sometimes" is unpredictable and completely random,this make me so
disappointed,
anyone has encounted the problem as me?
i doubt if it is a bug of ARX.net 2006 ?