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

Editor.SelectCrossingWindow() problem

1 REPLY 1
Reply
Message 1 of 2
Anonymous
511 Views, 1 Reply

Editor.SelectCrossingWindow() problem

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 ?
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

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 ?

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