Hi,
I am allowing the user to select the entity from the drawing using selection window both (window selection and cross selection) method.
I need to get the points(Corner points) of selection area.Is it possible to get the selection windows corner point?
Note:
My intention is to get the first entity being selected through the selection window by user.Is it possible?
Regrads,
ArunKumar
Not sure I understand exactely what you need... however a few points:
- Editor.GetSelection() will allow user to select entities using all of the features available, including windows, fence, direct pick, whatever. Please note that during that process the user may select multiple windows.
If you need to know what windows have been used, if any, this method won't allow for it.
- you may simulate the window selection using first a Editor.GetCorner(), that allow to pick two opposite points of a rectangle; next you can use Editor.GetWindow() where you can select entities using the points you already got.
It may work, but you force user to follow a rigid path and the selection will appear innatural, since it will lack of the entities selection preview while getting the rectangle, and also the color coding of the windows (inclusive - intersecting) along with the badges;
Also, you said you'd like to know which is the first entity selected during a window selection... this could be hard, I'm missing the whole point however, since using a window won't allow the user to specify also an order of selection easily.
As a wild guess:
- if you need a bunch selection using a window and sort the selected entities next, I'd do exactely this: allow selection with the maximum freedom and next sort the selected entities the way you need;
- on the other hand, if order selection is what you care most, use a single pick selection in a do-while structure;