C# Class Revit.SDK.Samples.AvoidObstruction.CS.Detector

This class is used to detect the obstructions of a Line or a ray.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
Detector ( Document rvtDoc ) : System

Constructor, initialize all the fields.

Obstructions ( Autodesk origin, Autodesk dir ) : List

Return all the obstructions which intersect with a ray given by an origin and a direction.

Obstructions ( System.Line boundLine ) : List

Return all the obstructions which intersect with a bound line.

Private Methods

Méthode Description
CompareReferencesWithContext ( ReferenceWithContext a, ReferenceWithContext b ) : int

Used to compare two references, just compare their ProximityParameter.

InArray ( List arr, ReferenceWithContext entry ) : bool

Judge whether a given Reference is in a Reference list. Give two References, if their Proximity and Element Id is equal, we say the two reference is equal.

Method Details

Detector() public méthode

Constructor, initialize all the fields.
public Detector ( Document rvtDoc ) : System
rvtDoc Document Revit Document
Résultat System

Obstructions() public méthode

Return all the obstructions which intersect with a ray given by an origin and a direction.
public Obstructions ( Autodesk origin, Autodesk dir ) : List
origin Autodesk Ray's origin
dir Autodesk Ray's direction
Résultat List

Obstructions() public méthode

Return all the obstructions which intersect with a bound line.
public Obstructions ( System.Line boundLine ) : List
boundLine System.Line Bound line
Résultat List