Autodesk Developer Network 2011
Autodesk
MultithreadedCalculation
§Create analysis data in separate thread
§Display it on a preselected element
§Uses current view SpatialFieldManager of the to show the analysis results
§Implements IUpdater to update analysis data on element geometry changes
§
§
§
§The type of the sender arg to the Idling event handler changed.
§The first two lines in UpdateWhileIdling():
§
§Application app = sender as Application;
§UIApplication uiApp = new UIApplication(app);
§
§need to be replaced with:
§
§UIApplication uiApp = sender as UIApplication;
§
MultiThreadedCalculation.png
Open C:\a\lib\revit\2012\SDK\Samples\AnalysisVisualizationFramework\MultithreadedCalculation\MultithreadedCalculation.rvt.
Run RvtSamples > AnalysisVisualizationFramework > MultithreadedCalculation.