Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Control option not working for PickObjects with Element selection filter

5 REPLIES 5
SOLVED
Reply
Message 1 of 6
JASONBIRD
1300 Views, 5 Replies

Control option not working for PickObjects with Element selection filter

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

5 REPLIES 5
Message 2 of 6
jeremytammik
in reply to: JASONBIRD

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

Message 3 of 6
jlpgy
in reply to: JASONBIRD

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
Message 4 of 6
JASONBIRD
in reply to: jeremytammik

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

 

 

 

Message 5 of 6
FAIR59
in reply to: JASONBIRD

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.

 

Message 6 of 6
JASONBIRD
in reply to: FAIR59

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report