C# Class Revit.SDK.Samples.CurtainSystem.CS.CurtainSystem.MassChecker

check whether the selected element is a mass and whether the mass is kind of parallelepiped (only mass of parallelepiped supported in this sample)
Mostra file Open project: AMEE/revit Class Usage Examples

Public Methods

Method Description
CheckSelectedMass ( ) : bool

check whether the selection is a parallelepiped mass

MassChecker ( MyDocument mydoc ) : System

Constructor

Private Methods

Method Description
ComputeCrossProduct ( System.Edge edgeA, System.Edge edgeB ) : Utility.Vector4

compute the cross product of 2 edges

GetMassFaceArray ( FamilyInstance mass ) : FaceArray

get the faces of the mass

GetSelectedMass ( ) : FamilyInstance

get the selected mass

IsFacesParallel ( FaceArray faces ) : bool

check whether the faces of the mass are one-one parallel

IsLinesParallel ( System.Edge edgeA, System.Edge edgeB ) : bool

check whether 2 edges are parallel

IsLinesParallel ( Utility vec4A, Utility vec4B ) : bool

check whether 2 vectors are parallel

IsMassParallelepiped ( FamilyInstance mass ) : bool

check whether the mass is a parallelepiped mass by checking the faces' normals (if it's a parallelepiped mass, it will have 3 groups of parallel faces)

Method Details

CheckSelectedMass() public method

check whether the selection is a parallelepiped mass
public CheckSelectedMass ( ) : bool
return bool

MassChecker() public method

Constructor
public MassChecker ( MyDocument mydoc ) : System
mydoc Revit.SDK.Samples.CurtainSystem.CS.Data.MyDocument /// the document of the sample ///
return System