C# 클래스 Revit.SDK.Samples.AvoidObstruction.CS.Detector

This class is used to detect the obstructions of a Line or a ray.
파일 보기 프로젝트 열기: AMEE/revit 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

Detector() 공개 메소드

Constructor, initialize all the fields.
public Detector ( Document rvtDoc ) : System
rvtDoc Document Revit Document
리턴 System

Obstructions() 공개 메소드

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
리턴 List

Obstructions() 공개 메소드

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