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

This class presents an obstruction of a Pipe.
Afficher le fichier Open project: AMEE/revit Class Usage Examples

Méthodes publiques

Méthode Description
BuildSections ( List allrefs, Autodesk dir ) : List

Build sections for References, it's a factory method to build sections. A section contains several points through which the ray passes the obstruction(s). for example, a section may contain 2 points when the obstruction is stand alone, or contain 4 points if 2 obstructions are intersects with each other in the direction of the ray.

Inflate ( int index, double value ) : void

Extend this obstruction's interval in one direction.

Private Methods

Méthode Description
Find ( List arr, ReferenceWithContext entry ) : ReferenceWithContext

Judge whether a Reference is already in the list of Reference, return the founded value.

Section ( Autodesk dir ) : System

Private constructor, just be called in static factory method BuildSections.

Method Details

BuildSections() public static méthode

Build sections for References, it's a factory method to build sections. A section contains several points through which the ray passes the obstruction(s). for example, a section may contain 2 points when the obstruction is stand alone, or contain 4 points if 2 obstructions are intersects with each other in the direction of the ray.
public static BuildSections ( List allrefs, Autodesk dir ) : List
allrefs List References
dir Autodesk Pipe's direction
Résultat List

Inflate() public méthode

Extend this obstruction's interval in one direction.
public Inflate ( int index, double value ) : void
index int index of direction, 0 => start, 1 => end
value double
Résultat void