C# Class Revit.SDK.Samples.MultithreadedCalculation.CS.MultithreadedCalculation

Inheritance: IExternalCommand
Datei anzeigen Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CreateContainer ( Element element ) : MultithreadedCalculationContainer

Prepares a container object that carries out the calculations without invoking Revit API calls.

Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result

Private Methods

Method Description
GetBiggestFaceFacingUser ( Element element, XYZ viewDirection ) : Face

Gets the biggest face which faces the user. Assumes that the element is a wall, or floor, or other "2-sided" element, and that one of the two biggest faces will be facing roughly towards the viewer.

Method Details

CreateContainer() public static method

Prepares a container object that carries out the calculations without invoking Revit API calls.
public static CreateContainer ( Element element ) : MultithreadedCalculationContainer
element Element The element for the calculations.
return MultithreadedCalculationContainer

Execute() public method

public Execute ( ExternalCommandData commandData, string &message, ElementSet elements ) : Autodesk.Revit.UI.Result
commandData ExternalCommandData
message string
elements ElementSet
return Autodesk.Revit.UI.Result