Control option not working for PickObjects with Element selection filter

JASONBIRD
Contributor
Contributor

Control option not working for PickObjects with Element selection filter

JASONBIRD
Contributor
Contributor

I use pickobjects with Element Object type selection filter to pick windows from the model. I can select windows within one big rectangle. I can then add individual windows by pressing Control. I want to add more windows to the selection within another rectangle by pressing Control. However as soon as I click mouse to start the rectangle the previous selections are deselected. The same behaviour works fine when selecting items on the model directly as shown on the attached screenshot.  I have looked on existing posts on the forum but couldn't find similar issue. 

Is there any known limitation/issue on pickobjects and Control?

 

Any suggestions or link to previous similar post will be very useful.

 

Thanks in advance

Jason

0 Likes
Reply
Accepted solutions (1)
1,351 Views
5 Replies
Replies (5)

jeremytammik
Autodesk
Autodesk

Dear Jason,

 

Thank you for your query.

 

I do not believe you can use the control button in conjunction with window selection.

 

Have you seen that anywhere else in the Revit user interface?

 

Please be aware that the Revit API hardly ever supports any functionality that is not also available in the user interface.

 

Therefore, if the UI does not support this, the API will probably not do so either.

 

I hope this helps.

 

Best regards,

 

Jeremy

 



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

jlpgy
Advocate
Advocate

Hi:

To be honest we all face such an situation:

  1. Invoke PickObjects
  2. Drag mouse to select several elements, don't click 'Finish'
  3. Drag mouse again, once you start to drag your mouse again, selections in step. 2 are cleared.

I don't have any workaround Smiley Sad

单身狗;代码狗;健身狗;jolinpiggy@hotmail.com

JASONBIRD
Contributor
Contributor

Thank you Jeremy for quick response on the query. 

 

The behaviour I was comparing was the general selection without any filter on user interface.

 

Is PickObjects with filter similar to selection filter set on UI? 

The edit selection set on UI seems to work similar to general selection (screenshot attached). Although it selects everything within the rectangle unlike the pickobjects which only highlights filtered elements. This may be acceptable solution if I can achieve this through API. I can filter the unwanted element types later. Is there any post or SDK sample which covers this?

Many thanks

Jason

 

 

 

0 Likes

FAIR59
Advisor
Advisor
Accepted solution

With care you can make multiple selection windows.

  • Make first selection
  • Hold Ctrl key
  • Your second selection window can't start somewhere random,  before entering the first mouse click to enter the 2nd selection rectangle, make sure an allowed element is highlighted under the mouse.
  • Make selection rectangle form that point from bottomright to topleft.

 

JASONBIRD
Contributor
Contributor

Dear Fair59,

 

Many thanks for the reply. The workaround works like charm.

I will mark this as accepted as this will be the closest solution for the issue for now.

0 Likes