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

Inheritance: IExternalCommand
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat MultithreadedCalculationContainer

Execute() public méthode

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