Message 1 of 3
Run ExternalEvent when some element is selected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi.
I know that I should use ExternalEvent to do somthing with Transaction in window that opened by Show() not ShowDialog().
This is my sample code.
////This code is run in window by Show()
////externalEventHandeler is custom handler with ExternalEvent and IExternalEventHandler
externalEventHandeler.Event += (s, arg) => {
//Do something with Transaction.
};
externalEventHandeler.Run();
It usually works well. But when element is selected, the event doesn't run. But the event run when I unselect element.
I searched and understand the reason is Revit UI thread holding 'Element select'.
I want to know run event withoue unselecting element.
How can I do?