Anuncios
Welcome to the Revit Ideas Board! Before posting, please read the helpful tips here. Thank you for your Ideas!

PickObjects() should returns element in sequnce

Hi ,

 

I am facing issue with Revit . I want to get elements id in sequence that I select in case of pick object but pick objects return element is sorted order.

I think after getting element can be sorted but getting selection sequence is not easy one.

 

 

Example :

Lets say in Document four element 1, 2, 3, 4.

I select element in sequence like 1, 4, 3, 2.

Currently PickObjects() result= 1,2,3,4

 

Expected result : 1,4,3,2

 

 

Note: I am achieving through adding while loop and using PickObject() . But in this case color of element when selected is not working so user not understand properly. I change color to fix color but some user uses different color scheme. so again this is an issue.