Author Topic: How to know the select order by user in a selection set?  (Read 1708 times)

0 Members and 1 Guest are viewing this topic.

xys1995

  • Mosquito
  • Posts: 17
How to know the select order by user in a selection set?
« on: April 06, 2016, 09:59:33 PM »
I want to write a function prompt user select some lines,at the same time need to know which line is the first to select,and which line  is the second to select....

xys1995

  • Mosquito
  • Posts: 17
Re: How to know the select order by user in a selection set?
« Reply #1 on: April 06, 2016, 10:01:24 PM »
PS: Can I use the SelectionAdded  event?

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: How to know the select order by user in a selection set?
« Reply #2 on: April 07, 2016, 12:46:47 AM »
The selection set contains the entitys in the order selected.
For instance these lines were drawn left to right and selected right to left.
The enames in the selection set are numbered highest to lowest, demonstrating that the selection order is retained in the selection set.

Perhaps you could demonstrate this with some .NET code
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

kdub_nz

  • Mesozoic keyThumper
  • SuperMod
  • Water Moccasin
  • Posts: 2139
  • class keyThumper<T>:ILazy<T>
Re: How to know the select order by user in a selection set?
« Reply #3 on: April 07, 2016, 12:56:32 AM »

afterthought:
What is the total number of objects you are selecting ?
Would you be better served making some single selections ??
Called Kerry in my other life
Retired; but they dragged me back in !

I live at UTC + 13.00

---
some people complain about loading the dishwasher.
Sometimes the question is more important than the answer.

xys1995

  • Mosquito
  • Posts: 17
Re: How to know the select order by user in a selection set?
« Reply #4 on: April 07, 2016, 01:32:30 AM »
The selection set contains the entitys in the order selected.
For instance these lines were drawn left to right and selected right to left.
The enames in the selection set are numbered highest to lowest, demonstrating that the selection order is retained in the selection set.

Perhaps you could demonstrate this with some .NET code


Thank you very much! I had thought that the order in the selection set is random before.
What I want to do is that according to the select order by the user,give the lines some proper Identifier.