Message 1 of 10
Properties Dialog doesnt accept input when commit transaction durig Idle event
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
This idling event is registered on startup. As expected, it sets the active view's Title on Sheet when Revit goes idle. (this is just a test case, my real application does other things)
The problems as shown in the screencast is that it is now impossible to use the Revit Properties Dialog. When I try to type text input (like to change the height of the wall) Revit does not accept the input. When I try to select from a drop-down list, the list does not function properly.
How can I modify the document on Idle and also have the Properties Dialog continue to work?
public Autodesk.Revit.UI.Result OnStartup(UIControlledApplication application)
{
application.Idling += Application_Idling;
}
private void Application_Idling(object sender, IdlingEventArgs e)
{
UIApplication uiapp = sender as UIApplication;
Document doc = uiapp.ActiveUIDocument.Document;
using (Transaction t = new Transaction(doc, "set date"))
{
t.Start();
doc.ActiveView.LookupParameter("Title on Sheet").Set(DateTime.Now.ToString());
t.Commit();
}
}