Selecting all instances in view while PickObjects()

Selecting all instances in view while PickObjects()

Anonymous
Not applicable
576 Views
1 Reply
Message 1 of 2

Selecting all instances in view while PickObjects()

Anonymous
Not applicable

Hi

 

Does anyone know if it is possible to add a button to context menu or next to finish/cancel when picking object with Selection.PickObjects() that selects all instances that passes your filter in the view? This will be a combination of the built in "select all instance visible in view" and PickObjects().

 

As of now I create the filter and then ask through a dialog whether the user want to pick single elements that pass the filter or all in visible view that passes the filter. It would be so much better if the user could choose it while in picking mode.

 

- Fredrik

 

0 Likes
577 Views
1 Reply
Reply (1)
Message 2 of 2

JimJia
Alumni
Alumni

Dear Fredrik,

 

I am sorry to tell you that you cannot  add a button to context menu or next to finish/cancel when picking object with Selection.PickObjects().

 

I think you have found the workaround way(using dialog to let user choose which mode he want)

 

 


Jim Jia
Autodesk Forge Evangelist
https://forge.autodesk.com
Developer Technical Services
Autodesk Developer Network
Email: Jim.Jia@autodesk.com
0 Likes