Message 1 of 2

Not applicable
11-15-2017
12:09 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to implement Idling event, anyway when i debug the codes, looks like program cant finished every line in this function where it stop at this line:
UIApplication uiapp = new UIApplication(app);
Below is the Idling function:
void OnIdling(object sender, IdlingEventArgs ea) { Application app = sender as Application; UIApplication uiapp = new UIApplication(app); //debug stop here UIDocument uidoc = uiapp.ActiveUIDocument; //debug never reach this line Document doc = uidoc.Document; }
Anybody understand why? Is my Revit idle cycle time too short? If yes how to control idle cycle time?
Solved! Go to Solution.