TheSwamp

Code Red => .NET => Topic started by: xys1995 on April 06, 2016, 09:59:33 PM

Title: How to know the select order by user in a selection set?
Post by: xys1995 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....
Title: Re: How to know the select order by user in a selection set?
Post by: xys1995 on April 06, 2016, 10:01:24 PM
PS: Can I use the SelectionAdded  event?
Title: Re: How to know the select order by user in a selection set?
Post by: kdub_nz 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
Title: Re: How to know the select order by user in a selection set?
Post by: kdub_nz 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 ??
Title: Re: How to know the select order by user in a selection set?
Post by: xys1995 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.