Is it possible to double-click elements in a TaskDialog?

Is it possible to double-click elements in a TaskDialog?

Anonymous
Not applicable
440 Views
2 Replies
Message 1 of 3

Is it possible to double-click elements in a TaskDialog?

Anonymous
Not applicable

Greetings.

 

I am currently trying to grasp the basics of working with Revit API and what I want to accomplish currently is to get all elements in the active view, show them in a TaskDialog and then create a functionality that, when you double-click on one of these elements, it closes the dialog and selects it in Revit. So far I got this:

 

lab8.png

 

However, I got stuck at the last part and I am unsure if it is even possible. Therefore two questions arise:

 

Can I somehow make the ID string react to a double-click in a way that it closes the dialog and then selects the element with that certain ID?

Do I have to add a WPF window and create this functionality there instead?

 

Any kind of advice is highly welcome!

0 Likes
Accepted solutions (1)
441 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

> Can I somehow make the ID string react to a double-click in a way that it closes the dialog and then selects the element with that certain ID?

 

No.

 

> Do I have to add a WPF window and create this functionality there instead?

 

Yes.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 3

Anonymous
Not applicable

Thank you! Highly appreciated

0 Likes